2021-03-01 10:26:01 +01:00
|
|
|
image: python
|
2021-02-12 06:58:50 +01:00
|
|
|
|
|
|
|
test:pylama:
|
|
|
|
stage: test
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
before_script:
|
|
|
|
- if test -r requirements.txt; then pip install -r requirements.txt; fi
|
|
|
|
script:
|
|
|
|
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
|
|
|
|
|