2018-03-27 20:58:21 +02:00
|
|
|
image: debian
|
|
|
|
|
2018-05-01 00:01:18 +02:00
|
|
|
stages:
|
|
|
|
- linting
|
|
|
|
- test
|
|
|
|
|
|
|
|
bandit:
|
|
|
|
stage: linting
|
|
|
|
script:
|
|
|
|
- apt-get -qqy update
|
|
|
|
- apt-get -qqy install --no-install-recommends python3-bandit
|
2018-06-04 20:46:22 +02:00
|
|
|
- bandit -r ./libmat2 --format txt --skip B101,B404,B603
|
2018-05-01 00:01:18 +02:00
|
|
|
|
|
|
|
pyflakes:
|
|
|
|
stage: linting
|
|
|
|
script:
|
|
|
|
- apt-get -qqy update
|
|
|
|
- apt-get -qqy install --no-install-recommends pyflakes3
|
2018-05-18 23:52:40 +02:00
|
|
|
- pyflakes3 ./libmat2
|
2018-05-01 00:01:18 +02:00
|
|
|
|
2018-06-04 22:54:01 +02:00
|
|
|
mypy:
|
|
|
|
stage: linting
|
|
|
|
script:
|
|
|
|
- apt-get -qqy update
|
|
|
|
- apt-get -qqy install --no-install-recommends python3-pip
|
|
|
|
- pip3 install mypy
|
|
|
|
- mypy mat2 libmat2/*.py --ignore-missing-imports
|
|
|
|
|
2018-05-01 00:01:18 +02:00
|
|
|
tests:
|
|
|
|
stage: test
|
2018-03-25 17:42:29 +02:00
|
|
|
script:
|
2018-04-14 16:12:32 +02:00
|
|
|
- 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
|
2018-03-27 20:58:21 +02:00
|
|
|
- python3-coverage run -m unittest discover -s tests/
|
2018-05-18 23:52:40 +02:00
|
|
|
- python3-coverage report -m --include 'libmat2/*'
|