From d44c8d676d1491e1b3614c8b7c415d2c57c47a31 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 16 Dec 2018 20:39:08 +0100 Subject: Add a small testsuite --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') 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 @@ +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 -- cgit v1.3