1
0
Fork 0
forked from s3lph/matemat
matemat/.gitlab-ci.yml

28 lines
803 B
YAML
Raw Normal View History

2018-05-29 21:49:40 +02:00
---
image: debian:buster
2018-05-29 21:49:40 +02:00
stages:
- test
- codestyle
2018-05-29 21:49:40 +02:00
test:
stage: test
2018-05-29 21:49:40 +02:00
script:
- useradd matemat
2018-05-29 21:49:40 +02:00
- apt-get update -qy
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
- pip3 install wheel
2018-05-29 21:49:40 +02:00
- pip3 install -r requirements.txt
- su - matemat python3-coverage run --branch -m unittest discover matemat
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
codestyle:
stage: codestyle
script:
- apt-get update -qy
- 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
- pycodestyle matemat
# - mypy --ignore-missing-imports --strict -p matemat