diff options
| author | jvoisin | 2018-12-16 20:39:08 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-16 21:07:09 +0100 |
| commit | d44c8d676d1491e1b3614c8b7c415d2c57c47a31 (patch) | |
| tree | 426c75650669342e1181600dbdd8650232bd60d3 /.gitlab-ci.yml | |
| parent | 19dfe057076a09615c5cc7515f7f50fb99b7e846 (diff) | |
Add a small testsuite
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7e4236b --- /dev/null +++ b/.gitlab-ci.yml | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | image: debian:testing | ||
| 2 | |||
| 3 | stages: | ||
| 4 | - linting | ||
| 5 | - test | ||
| 6 | |||
| 7 | pyflakes: | ||
| 8 | stage: linting | ||
| 9 | script: | ||
| 10 | - apt-get -qqy update | ||
| 11 | - apt-get -qqy install --no-install-recommends pyflakes3 | ||
| 12 | - pyflakes3 ./main.py | ||
| 13 | |||
| 14 | mypy: | ||
| 15 | stage: linting | ||
| 16 | script: | ||
| 17 | - apt-get -qqy update | ||
| 18 | - apt-get -qqy install --no-install-recommends python3-pip | ||
| 19 | - pip3 install mypy | ||
| 20 | - mypy --ignore-missing-imports main.py | ||
| 21 | |||
| 22 | tests:debian: | ||
| 23 | stage: test | ||
| 24 | script: | ||
| 25 | - apt-get -qqy update | ||
| 26 | - apt-get -qqy install --no-install-recommends mat2 python3-flask python3-coverage | ||
| 27 | - python3-coverage run --branch -m unittest discover | ||
| 28 | - python3-coverage report -m | ||
