1
0
mirror of synced 2024-11-26 03:04:22 +01:00

CI: Add job to run tests on gentoo

Closes #93
This commit is contained in:
georg 2019-03-09 04:15:10 -08:00 committed by jvoisin
parent e40eb92b55
commit 2dc097baf3

View File

@ -5,7 +5,7 @@ stages:
- linting - linting
- test - test
bandit: linting:bandit:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
stage: linting stage: linting
script: # TODO: remove B405 and B314 script: # TODO: remove B405 and B314
@ -13,7 +13,7 @@ bandit:
- bandit -r ./nautilus/ --format txt --skip B101 - bandit -r ./nautilus/ --format txt --skip B101
- bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314
pylint: linting:pylint:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
stage: linting stage: linting
script: script:
@ -21,18 +21,24 @@ pylint:
# Once nautilus-python is in Debian, decomment it form the line below # 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 - pylint3 --disable=no-else-return --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py
pyflakes: linting:pyflakes:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
stage: linting stage: linting
script: script:
- pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus
mypy: linting:mypy:
image: $CONTAINER_REGISTRY:linting image: $CONTAINER_REGISTRY:linting
stage: linting stage: linting
script: script:
- mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py - mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py
tests:archlinux:
image: $CONTAINER_REGISTRY:archlinux
stage: test
script:
- python3 setup.py test
tests:debian: tests:debian:
image: $CONTAINER_REGISTRY:debian image: $CONTAINER_REGISTRY:debian
stage: test stage: test
@ -54,8 +60,8 @@ tests:fedora:
script: script:
- python3 setup.py test - python3 setup.py test
tests:archlinux: tests:gentoo:
image: $CONTAINER_REGISTRY:archlinux image: $CONTAINER_REGISTRY:gentoo
stage: test stage: test
script: script:
- python3 setup.py test - python3 -m unittest discover -v