diff options
| author | georg | 2019-02-22 14:10:56 +0000 |
|---|---|---|
| committer | jvoisin | 2019-03-07 21:53:43 +0100 |
| commit | 459ed0744395770fa02e051962558f04f33ab045 (patch) | |
| tree | 3aa4ba5ac7b4077590fea3e167bc9340e9047721 | |
| parent | 32ca58ef82aedb58ad86493980eaeb7d45487e67 (diff) | |
CI: Use own images to speed up jobs
Relates #45
Relates #93
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f74cc9e..0b38a56 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | image: debian | 1 | variables: |
| 2 | CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images | ||
| 2 | 3 | ||
| 3 | stages: | 4 | stages: |
| 4 | - linting | 5 | - linting |
| 5 | - test | 6 | - test |
| 6 | 7 | ||
| 7 | bandit: | 8 | bandit: |
| 9 | image: $CONTAINER_REGISTRY:linting | ||
| 8 | stage: linting | 10 | stage: linting |
| 9 | script: # TODO: remove B405 and B314 | 11 | script: # TODO: remove B405 and B314 |
| 10 | - apt-get -qqy update | 12 | - apt-get -qqy update |
| @@ -14,6 +16,7 @@ bandit: | |||
| 14 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 | 16 | - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314 |
| 15 | 17 | ||
| 16 | pylint: | 18 | pylint: |
| 19 | image: $CONTAINER_REGISTRY:linting | ||
| 17 | stage: linting | 20 | stage: linting |
| 18 | script: | 21 | script: |
| 19 | - apt-get -qqy update | 22 | - apt-get -qqy update |
| @@ -23,6 +26,7 @@ pylint: | |||
| 23 | - pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py | 26 | - pylint3 --extension-pkg-whitelist=Nautilus,GObject,Gtk,Gio,GLib,gi ./nautilus/mat2.py |
| 24 | 27 | ||
| 25 | pyflakes: | 28 | pyflakes: |
| 29 | image: $CONTAINER_REGISTRY:linting | ||
| 26 | stage: linting | 30 | stage: linting |
| 27 | script: | 31 | script: |
| 28 | - apt-get -qqy update | 32 | - apt-get -qqy update |
| @@ -30,6 +34,7 @@ pyflakes: | |||
| 30 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus | 34 | - pyflakes3 ./libmat2 ./mat2 ./tests/ ./nautilus |
| 31 | 35 | ||
| 32 | mypy: | 36 | mypy: |
| 37 | image: $CONTAINER_REGISTRY:linting | ||
| 33 | stage: linting | 38 | stage: linting |
| 34 | script: | 39 | script: |
| 35 | - apt-get -qqy update | 40 | - apt-get -qqy update |
| @@ -38,6 +43,7 @@ mypy: | |||
| 38 | - mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py | 43 | - mypy --ignore-missing-imports mat2 libmat2/*.py ./nautilus/mat2.py |
| 39 | 44 | ||
| 40 | tests:debian: | 45 | tests:debian: |
| 46 | image: $CONTAINER_REGISTRY:debian | ||
| 41 | stage: test | 47 | stage: test |
| 42 | script: | 48 | script: |
| 43 | - apt-get -qqy update | 49 | - apt-get -qqy update |
| @@ -47,6 +53,7 @@ tests:debian: | |||
| 47 | - python3-coverage report --fail-under=90 -m --include 'libmat2/*' | 53 | - python3-coverage report --fail-under=90 -m --include 'libmat2/*' |
| 48 | 54 | ||
| 49 | tests:debian_with_bubblewrap: | 55 | tests:debian_with_bubblewrap: |
| 56 | image: $CONTAINER_REGISTRY:debian | ||
| 50 | stage: test | 57 | stage: test |
| 51 | tags: | 58 | tags: |
| 52 | - whitewhale | 59 | - whitewhale |
| @@ -57,7 +64,7 @@ tests:debian_with_bubblewrap: | |||
| 57 | - python3-coverage report --fail-under=100 -m --include 'libmat2/*' | 64 | - python3-coverage report --fail-under=100 -m --include 'libmat2/*' |
| 58 | 65 | ||
| 59 | tests:fedora: | 66 | tests:fedora: |
| 60 | image: fedora | 67 | image: $CONTAINER_REGISTRY:fedora |
| 61 | stage: test | 68 | stage: test |
| 62 | tags: | 69 | tags: |
| 63 | - whitewhale | 70 | - whitewhale |
| @@ -67,7 +74,7 @@ tests:fedora: | |||
| 67 | - python3 setup.py test | 74 | - python3 setup.py test |
| 68 | 75 | ||
| 69 | tests:archlinux: | 76 | tests:archlinux: |
| 70 | image: archlinux/base | 77 | image: $CONTAINER_REGISTRY:archlinux |
| 71 | stage: test | 78 | stage: test |
| 72 | tags: | 79 | tags: |
| 73 | - whitewhale | 80 | - whitewhale |
