.gitlab-ci.yml 448 Bytes
Newer Older
Maximilian Dolling's avatar
Maximilian Dolling committed
1
2
3
4
5
6
7
image: python:3

stages:
  - test

before_script:
  - pip install -r requirements.txt
Maximilian Dolling's avatar
Maximilian Dolling committed
8
  - pip install pylint
Maximilian Dolling's avatar
Maximilian Dolling committed
9
10
11
12

test:pylint:
  stage: test
  script:
13
    - pylint --rcfile test/linting/pylintrc src/*.py
Maximilian Dolling's avatar
Maximilian Dolling committed
14
15
16
17
18
19
20
21
22
  only:
    changes:
      - "**/*.py"
      - "test/linting/pylintrc"
      - ".gitlab-ci.yml"

test:unittest:
  stage: test
  script:
23
    - python -m unittest discover test/unittest
Maximilian Dolling's avatar
Maximilian Dolling committed
24
25
26
27
  only:
    changes:
      - "**/*.py"
      - ".gitlab-ci.yml"