diff options
| author | georg | 2019-03-04 09:24:02 +0000 |
|---|---|---|
| committer | jvoisin | 2019-03-07 21:53:43 +0100 |
| commit | adf7adf85450c05bc3e37d0b5b4c5e163591c135 (patch) | |
| tree | 9b1332dc969162cd4cda7c5ced87a7a35f0f30a8 /.gitlab-ci.yml | |
| parent | 2b4f2199e4e3a2f86fb344fc62969e4149fa56bc (diff) | |
CI: Don't install packages in the jobs, now handled via pre-built images
Relates #45
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d90e525..56166e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -9,8 +9,6 @@ bandit: | |||
| 9 | image: $CONTAINER_REGISTRY:linting | 9 | image: $CONTAINER_REGISTRY:linting |
| 10 | stage: linting | 10 | stage: linting |
| 11 | script: # TODO: remove B405 and B314 | 11 | script: # TODO: remove B405 and B314 |
| 12 | - apt-get -qqy update | ||
| 13 | - apt-get -qqy install --no-install-recommends python3-bandit | ||
| 14 | - bandit ./mat2 --format txt --skip B101 | 12 | - bandit ./mat2 --format txt --skip B101 |
| 15 | - bandit -r ./nautilus/ --format txt --skip B101 | 13 | - bandit -r ./nautilus/ --format txt --skip B101 |
| 16 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 | 14 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 |
| @@ -19,8 +17,6 @@ pylint: | |||
| 19 | image: $CONTAINER_REGISTRY:linting | 17 | image: $CONTAINER_REGISTRY:linting |
| 20 | stage: linting | 18 | stage: linting |
| 21 | script: | 19 | script: |
| 22 | - apt-get -qqy update | ||
| 23 | - apt-get -qqy install --no-install-recommends pylint3 python3-mutagen python3-gi-cairo gir1.2-poppler-0.18 gir1.2-gdkpixbuf-2.0 | ||
| 24 | - pylint3 --disable=no-else-return --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 | 20 | - pylint3 --disable=no-else-return --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2 |
| 25 | # Once nautilus-python is in Debian, decomment it form the line below | 21 | # Once nautilus-python is in Debian, decomment it form the line below |
| 26 | - pylint3 --disable=no-else-return --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py | 22 | - pylint3 --disable=no-else-return --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py |
| @@ -29,16 +25,12 @@ pyflakes: | |||
| 29 | image: $CONTAINER_REGISTRY:linting | 25 | image: $CONTAINER_REGISTRY:linting |
| 30 | stage: linting | 26 | stage: linting |
| 31 | script: | 27 | script: |
| 32 | - apt-get -qqy update | ||
| 33 | - apt-get -qqy install --no-install-recommends pyflakes3 | ||
| 34 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus | 28 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus |
| 35 | 29 | ||
| 36 | mypy: | 30 | mypy: |
| 37 | image: $CONTAINER_REGISTRY:linting | 31 | image: $CONTAINER_REGISTRY:linting |
| 38 | stage: linting | 32 | stage: linting |
| 39 | script: | 33 | script: |
| 40 | - apt-get -qqy update | ||
| 41 | - apt-get -qqy install --no-install-recommends python3-pip | ||
| 42 | - pip3 install mypy | 34 | - pip3 install mypy |
| 43 | - mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py | 35 | - mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py |
| 44 | 36 | ||
| @@ -46,8 +38,6 @@ tests:debian: | |||
| 46 | image: $CONTAINER_REGISTRY:debian | 38 | image: $CONTAINER_REGISTRY:debian |
| 47 | stage: test | 39 | stage: test |
| 48 | script: | 40 | script: |
| 49 | - apt-get -qqy update | ||
| 50 | - 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 ffmpeg | ||
| 51 | - apt-get -qqy purge bubblewrap | 41 | - apt-get -qqy purge bubblewrap |
| 52 | - python3-coverage run --branch -m unittest discover -s tests/ | 42 | - python3-coverage run --branch -m unittest discover -s tests/ |
| 53 | - python3-coverage report --fail-under=90 -m --include 'libmat2/*' | 43 | - python3-coverage report --fail-under=90 -m --include 'libmat2/*' |
| @@ -58,8 +48,6 @@ tests:debian_with_bubblewrap: | |||
| 58 | tags: | 48 | tags: |
| 59 | - whitewhale | 49 | - whitewhale |
| 60 | script: | 50 | script: |
| 61 | - apt-get -qqy update | ||
| 62 | - 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 ffmpeg bubblewrap | ||
| 63 | - python3-coverage run --branch -m unittest discover -s tests/ | 51 | - python3-coverage run --branch -m unittest discover -s tests/ |
| 64 | - python3-coverage report --fail-under=100 -m --include 'libmat2/*' | 52 | - python3-coverage report --fail-under=100 -m --include 'libmat2/*' |
| 65 | 53 | ||
| @@ -69,8 +57,6 @@ tests:fedora: | |||
| 69 | tags: | 57 | tags: |
| 70 | - whitewhale | 58 | - whitewhale |
| 71 | script: | 59 | script: |
| 72 | - 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 | ||
| 73 | - gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache | ||
| 74 | - python3 setup.py test | 60 | - python3 setup.py test |
| 75 | 61 | ||
| 76 | tests:archlinux: | 62 | tests:archlinux: |
| @@ -79,5 +65,4 @@ tests:archlinux: | |||
| 79 | tags: | 65 | tags: |
| 80 | - whitewhale | 66 | - whitewhale |
| 81 | script: | 67 | script: |
| 82 | - pacman -Sy --noconfirm python-mutagen python-gobject gdk-pixbuf2 poppler-glib gdk-pixbuf2 python-cairo perl-image-exiftool python-setuptools mailcap ffmpeg | ||
| 83 | - python3 setup.py test | 68 | - python3 setup.py test |
