1
0
Fork 0
forked from s3lph/matemat

Split CI pipeline into 2 stages, added mypy check.

This commit is contained in:
s3lph 2018-06-05 22:38:42 +02:00
parent 82eb4f37f1
commit 4db168b750
2 changed files with 9 additions and 2 deletions

View file

@ -1,18 +1,26 @@
--- ---
image: debian:buster image: debian:buster
stages:
- test
- codestyle
test: test:
stage: test
script: script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential - apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
- pip3 install wheel
- pip3 install -r requirements.txt - pip3 install -r requirements.txt
- python3-coverage run --branch -m unittest discover matemat - python3-coverage run --branch -m unittest discover matemat
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py' - python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
codestyle: codestyle:
stage: codestyle
script: script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential - apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
- pip3 install wheel pycodestyle mypy
- pip3 install -r requirements.txt - pip3 install -r requirements.txt
- pip3 install pycodestyle
- pycodestyle matemat - pycodestyle matemat
- mypy matemat

View file

@ -1,3 +1,2 @@
wheel
bcrypt bcrypt
apsw apsw