.gitlab-ci.yml 789 Bytes
Newer Older
1
2
default:
  image: python:3.7
3

4
5
6
stages:
  - lint
  - tests
7
8

flake8:
9
  stage: lint
10
11
12
  before_script:
    - pip install tox
  script: tox -e flake8
13
14

yamllint:
15
  stage: lint
16
17
18
19
20
21
22
23
24
25
  rules:
    - changes:
        - "**/*.yaml"
        - "*.yaml"
        - "**/*.yml"
        - "*.yml"
  before_script:
    - pip install tox
  script:
    - tox -e yamllint
26
27
28
29
30
31
32
33

py27:
  stage: tests
  before_script:
    - apt update && apt -y install redis-server libpython2.7-dev
    - pip install tox
  script: tox -e py27
  allow_failure: true  # XXX
34
35
36
  artifacts:
    paths:
      - py27-deprecated-warnings.json
37
38
39
40
41
42
43

py3:
  stage: tests
  before_script:
    - apt update && apt -y install redis-server libpython3.7-dev
    - pip install tox
  script: tox -e py3
44
45
46
  artifacts:
    paths:
      - py3-deprecated-warnings.json