.gitlab-ci.yml 568 Bytes
Newer Older
Nicolas Chauvat's avatar
Nicolas Chauvat committed
1
---
2
3
image: python:3.7

Nicolas Chauvat's avatar
Nicolas Chauvat committed
4
stages:
5
  - lint
Nicolas Chauvat's avatar
Nicolas Chauvat committed
6
7
8
  - tests
  - after-tests

9
10
11
12
before_script:
  - pip install tox

check-manifest:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
13
  stage: tests
14
15
16
  script: tox -e check-manifest

flake8:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
17
  stage: tests
18
19
20
  script: tox -e flake8

py3:
Nicolas Chauvat's avatar
Nicolas Chauvat committed
21
  stage: tests
22
  script: tox -e py3
23
24
25
  artifacts:
    paths:
      - py3-deprecated-warnings.json
26

Nicolas Chauvat's avatar
Nicolas Chauvat committed
27
28
29
black:
  stage: tests
  script: tox -e black
30

Nicolas Chauvat's avatar
Nicolas Chauvat committed
31
32
33
mypy:
  stage: tests
  script: tox -e mypy
34
35
36
37
38
39
40
41
42
43
44

yamllint:
  stage: lint
  rules:
    - changes:
        - "**/*.yaml"
        - "*.yaml"
        - "**/*.yml"
        - "*.yml"
  script:
    - tox -e yamllint