switched to python:alpine docker image, added conditional call to pytest, made call to pylama conditional
This commit is contained in:
parent
b75ec4bab0
commit
c853254882
1 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
image: python
|
image: python:alpine
|
||||||
|
|
||||||
test:pylama:
|
test:pylama:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -8,5 +8,15 @@ test:pylama:
|
||||||
before_script:
|
before_script:
|
||||||
- if test -r requirements.txt; then pip install -r requirements.txt; fi
|
- if test -r requirements.txt; then pip install -r requirements.txt; fi
|
||||||
script:
|
script:
|
||||||
pylama *.py
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue