2021-02-11 15:56:52 +01:00
|
|
|
image: python
|
|
|
|
|
|
|
|
test:pylama:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
before_script:
|
2021-04-27 14:24:54 +02:00
|
|
|
- apt-upgrade && apt-get install -y -q python3-apt python3-aptdaemon
|
2021-03-01 10:29:20 +01:00
|
|
|
- if test -r requirements.txt; then pip install -r requirements.txt; fi
|
2021-02-11 15:56:52 +01:00
|
|
|
script:
|
2021-03-01 10:29:20 +01:00
|
|
|
if test -x "$(which pylama)"; then pylama *.py; fi
|
|
|
|
|
|
|
|
test:pytest:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
before_script:
|
|
|
|
- if test -r requirements.txt; then pip install -r requirements.txt; fi
|
|
|
|
script:
|
|
|
|
if test -x "$(which pytest)"; then pytest .; fi
|
2021-02-11 15:56:52 +01:00
|
|
|
|