1
0
mirror of synced 2024-11-29 12:44:23 +01:00
mat2/.gitlab-ci.yml

63 lines
2.1 KiB
YAML
Raw Normal View History

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: # TODO: remove B405 and B314
2018-05-01 00:01:18 +02:00
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends python3-bandit
2018-07-23 23:42:56 +02:00
- bandit ./mat2 --format txt
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:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pylint3 python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0
2018-07-23 23:42:56 +02:00
- pylint3 --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2
# Once nautilus-python is in Debian, decomment it form the line below
- pylint3 --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:
stage: linting
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends pyflakes3
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:
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
- mypy --ignore-missing-imports ./nautilus/mat2.py
2018-06-04 22:54:01 +02:00
2018-06-12 22:40:57 +02:00
tests:debian:
2018-05-01 00:01:18 +02:00
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-06-10 01:02:21 +02:00
- python3-coverage run --branch -m unittest discover -s tests/
- python3-coverage report -m --include 'libmat2/*'
2018-06-12 22:40:57 +02:00
tests:fedora:
image: fedora
stage: test
script:
2018-07-09 00:30:16 +02:00
- dnf install -y python3 python3-mutagen python3-gobject gdk-pixbuf2 poppler-glib gdk-pixbuf2 gdk-pixbuf2-modules cairo-gobject cairo python3-cairo perl-Image-ExifTool mailcap
2018-06-12 22:40:57 +02:00
- gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
- python3 setup.py test
2018-09-01 15:07:01 +02:00
tests:archlinux:
image: archlinux/base
stage: test
script:
- pacman -Sy --noconfirm python-mutagen python-gobject gdk-pixbuf2 poppler-glib gdk-pixbuf2 python-cairo perl-image-exiftool python-setuptools mailcap
- python3 setup.py test