1
0
Fork 0
mat2/.gitlab-ci.yml

62 lines
1.6 KiB
YAML
Raw Normal View History

variables:
CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images
2018-03-27 20:58:21 +02:00
2018-05-01 00:01:18 +02:00
stages:
- linting
- test
bandit:
image: $CONTAINER_REGISTRY:linting
2018-05-01 00:01:18 +02:00
stage: linting
script: # TODO: remove B405 and B314
- bandit ./mat2 --format txt --skip B101
2018-07-25 01:44:02 +02:00
- bandit -r ./nautilus/ --format txt --skip B101
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
2018-05-01 00:01:18 +02:00
2018-07-09 01:12:59 +02:00
pylint:
image: $CONTAINER_REGISTRY:linting
2018-07-09 01:12:59 +02:00
stage: linting
script:
- pylint3 --disable=no-else-return --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2
2018-07-23 23:42:56 +02:00
# Once nautilus-python is in Debian, decomment it form the line below
- pylint3 --disable=no-else-return --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
2018-07-09 01:12:59 +02:00
2018-05-01 00:01:18 +02:00
pyflakes:
image: $CONTAINER_REGISTRY:linting
2018-05-01 00:01:18 +02:00
stage: linting
script:
2018-07-23 23:42:56 +02:00
- pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus
2018-05-01 00:01:18 +02:00
2018-06-04 22:54:01 +02:00
mypy:
image: $CONTAINER_REGISTRY:linting
2018-06-04 22:54:01 +02:00
stage: linting
script:
- mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py
2018-06-04 22:54:01 +02:00
2018-06-12 22:40:57 +02:00
tests:debian:
image: $CONTAINER_REGISTRY:debian
2018-05-01 00:01:18 +02:00
stage: test
2018-03-25 17:42:29 +02:00
script:
- apt-get -qqy purge bubblewrap
- python3-coverage run --branch -m unittest discover -s tests/
- python3-coverage report --fail-under=90 -m --include 'libmat2/*'
tests:debian_with_bubblewrap:
image: $CONTAINER_REGISTRY:debian
stage: test
script:
2018-06-10 01:02:21 +02:00
- python3-coverage run --branch -m unittest discover -s tests/
- python3-coverage report --fail-under=100 -m --include 'libmat2/*'
2018-06-12 22:40:57 +02:00
tests:fedora:
image: $CONTAINER_REGISTRY:fedora
2018-06-12 22:40:57 +02:00
stage: test
script:
- python3 setup.py test
2018-09-01 15:07:01 +02:00
tests:archlinux:
image: $CONTAINER_REGISTRY:archlinux
2018-09-01 15:07:01 +02:00
stage: test
script:
- python3 setup.py test