mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-02-23 16:49:59 -05:00
Add a small testsuite
This commit is contained in:
parent
19dfe05707
commit
d44c8d676d
28
.gitlab-ci.yml
Normal file
28
.gitlab-ci.yml
Normal file
@ -0,0 +1,28 @@
|
||||
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 -m unittest discover
|
||||
- python3-coverage report -m
|
Loading…
x
Reference in New Issue
Block a user