mat2-web/.gitlab-ci.yml
2018-12-16 21:15:35 +01:00

29 lines
632 B
YAML

image: debian:testing
stages:
- linting
- test
pyflakes:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pyflakes3
- pyflakes3 ./main.py
mypy:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends python3-pip
- pip3 install mypy
- mypy --ignore-missing-imports main.py
tests:debian:
stage: test
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage
- python3-coverage run --branch --include main.py -m unittest discover
- python3-coverage report -m