mat2-web/.gitlab-ci.yml

29 lines
632 B
YAML
Raw Normal View History

2018-12-16 20:39:08 +01:00
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
2018-12-16 20:39:08 +01:00
- python3-coverage report -m