summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 37f3b01d18e012628fa164c822d2a35dbadc7639 (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
image: debian

stages:
  - linting
  - test

bandit:
  stage: linting
  script:
  - apt-get -qqy update
  - apt-get -qqy install --no-install-recommends python3-bandit
  - bandit -r ./libmat2 --format txt --skip B404,B603

pyflakes:
  stage: linting
  script:
  - apt-get -qqy update
  - apt-get -qqy install --no-install-recommends pyflakes3
  - pyflakes3 ./libmat2

tests:
  stage: test
  script:
  - apt-get -qqy update
  - apt-get -qqy install --no-install-recommends python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 libimage-exiftool-perl python3-coverage
  - python3-coverage run -m unittest discover -s tests/
  - python3-coverage report -m --include 'libmat2/*'