parent
32ca58ef82
commit
459ed07443
@ -1,10 +1,12 @@
|
|||||||
image: debian
|
variables:
|
||||||
|
CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- linting
|
- linting
|
||||||
- test
|
- test
|
||||||
|
|
||||||
bandit:
|
bandit:
|
||||||
|
image: $CONTAINER_REGISTRY:linting
|
||||||
stage: linting
|
stage: linting
|
||||||
script: # TODO: remove B405 and B314
|
script: # TODO: remove B405 and B314
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
@ -14,6 +16,7 @@ bandit:
|
|||||||
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
|
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
|
image: $CONTAINER_REGISTRY:linting
|
||||||
stage: linting
|
stage: linting
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
@ -23,6 +26,7 @@ pylint:
|
|||||||
- pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
|
- pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
|
||||||
|
|
||||||
pyflakes:
|
pyflakes:
|
||||||
|
image: $CONTAINER_REGISTRY:linting
|
||||||
stage: linting
|
stage: linting
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
@ -30,6 +34,7 @@ pyflakes:
|
|||||||
- pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus
|
- pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus
|
||||||
|
|
||||||
mypy:
|
mypy:
|
||||||
|
image: $CONTAINER_REGISTRY:linting
|
||||||
stage: linting
|
stage: linting
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
@ -38,6 +43,7 @@ mypy:
|
|||||||
- mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py
|
- mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py
|
||||||
|
|
||||||
tests:debian:
|
tests:debian:
|
||||||
|
image: $CONTAINER_REGISTRY:debian
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apt-get -qqy update
|
- apt-get -qqy update
|
||||||
@ -47,6 +53,7 @@ tests:debian:
|
|||||||
- python3-coverage report --fail-under=90 -m --include 'libmat2/*'
|
- python3-coverage report --fail-under=90 -m --include 'libmat2/*'
|
||||||
|
|
||||||
tests:debian_with_bubblewrap:
|
tests:debian_with_bubblewrap:
|
||||||
|
image: $CONTAINER_REGISTRY:debian
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- whitewhale
|
- whitewhale
|
||||||
@ -57,7 +64,7 @@ tests:debian_with_bubblewrap:
|
|||||||
- python3-coverage report --fail-under=100 -m --include 'libmat2/*'
|
- python3-coverage report --fail-under=100 -m --include 'libmat2/*'
|
||||||
|
|
||||||
tests:fedora:
|
tests:fedora:
|
||||||
image: fedora
|
image: $CONTAINER_REGISTRY:fedora
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- whitewhale
|
- whitewhale
|
||||||
@ -67,7 +74,7 @@ tests:fedora:
|
|||||||
- python3 setup.py test
|
- python3 setup.py test
|
||||||
|
|
||||||
tests:archlinux:
|
tests:archlinux:
|
||||||
image: archlinux/base
|
image: $CONTAINER_REGISTRY:archlinux
|
||||||
stage: test
|
stage: test
|
||||||
tags:
|
tags:
|
||||||
- whitewhale
|
- whitewhale
|
||||||
|
Loading…
Reference in New Issue
Block a user