2018-05-29 21:49:40 +02:00
|
|
|
---
|
2018-05-29 23:01:05 +02:00
|
|
|
image: debian:buster
|
2018-05-29 21:49:40 +02:00
|
|
|
|
2018-06-05 22:38:42 +02:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- codestyle
|
|
|
|
|
2018-05-29 21:49:40 +02:00
|
|
|
test:
|
2018-06-05 22:38:42 +02:00
|
|
|
stage: test
|
2018-05-29 21:49:40 +02:00
|
|
|
script:
|
2018-06-19 21:47:40 +02:00
|
|
|
- useradd matemat
|
2018-05-29 21:49:40 +02:00
|
|
|
- apt-get update -qy
|
2018-05-29 22:53:46 +02:00
|
|
|
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
2018-06-05 22:38:42 +02:00
|
|
|
- pip3 install wheel
|
2018-05-29 21:49:40 +02:00
|
|
|
- pip3 install -r requirements.txt
|
2018-06-19 21:52:00 +02:00
|
|
|
- su - matemat -c 'python3-coverage run --branch -m unittest discover matemat'
|
2018-06-05 19:14:35 +02:00
|
|
|
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
|
2018-06-05 22:32:09 +02:00
|
|
|
|
|
|
|
codestyle:
|
2018-06-05 22:38:42 +02:00
|
|
|
stage: codestyle
|
2018-06-05 22:32:09 +02:00
|
|
|
script:
|
|
|
|
- apt-get update -qy
|
|
|
|
- apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
2018-06-05 22:38:42 +02:00
|
|
|
- pip3 install wheel pycodestyle mypy
|
2018-06-05 22:32:09 +02:00
|
|
|
- pip3 install -r requirements.txt
|
2018-06-06 13:03:30 +02:00
|
|
|
- pycodestyle matemat
|
2018-06-06 13:24:36 +02:00
|
|
|
# - mypy --ignore-missing-imports --strict -p matemat
|