summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: a667620004fa90b4674b0336a2e0cb3452a6f12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 --include main.py -m unittest discover
  - python3-coverage report -m