diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index c3b78a0..0000000 --- a/.gitlab-ci.yml +++ /dev/null | |||
| @@ -1,109 +0,0 @@ | |||
| 1 | variables: | ||
| 2 | CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images | ||
| 3 | GIT_DEPTH: "5" | ||
| 4 | GIT_STRATEGY: clone | ||
| 5 | |||
| 6 | stages: | ||
| 7 | - linting | ||
| 8 | - test | ||
| 9 | |||
| 10 | .prepare_env: &prepare_env | ||
| 11 | before_script: # This is needed to not run the testsuite as root | ||
| 12 | - useradd --home-dir ${CI_PROJECT_DIR} mat2 | ||
| 13 | - chown -R mat2 . | ||
| 14 | |||
| 15 | linting:ruff: | ||
| 16 | image: $CONTAINER_REGISTRY:linting | ||
| 17 | stage: linting | ||
| 18 | script: | ||
| 19 | - apt update | ||
| 20 | - apt install -qqy --no-install-recommends python3-venv | ||
| 21 | - python3 -m venv venv | ||
| 22 | - source venv/bin/activate | ||
| 23 | - pip3 install ruff | ||
| 24 | - ruff check . | ||
| 25 | |||
| 26 | tests:archlinux: | ||
| 27 | image: $CONTAINER_REGISTRY:archlinux | ||
| 28 | stage: test | ||
| 29 | script: | ||
| 30 | - python3 -m unittest discover -v | ||
| 31 | |||
| 32 | tests:debian: | ||
| 33 | image: $CONTAINER_REGISTRY:debian | ||
| 34 | stage: test | ||
| 35 | <<: *prepare_env | ||
| 36 | script: | ||
| 37 | - apt-get -qqy purge bubblewrap | ||
| 38 | - su - mat2 -c "python3-coverage run --branch -m unittest discover -s tests/" | ||
| 39 | - su - mat2 -c "python3-coverage report --fail-under=95 -m --include 'libmat2/*'" | ||
| 40 | |||
| 41 | tests:debian_with_bubblewrap: | ||
| 42 | image: $CONTAINER_REGISTRY:debian | ||
| 43 | stage: test | ||
| 44 | allow_failure: true | ||
| 45 | <<: *prepare_env | ||
| 46 | script: | ||
| 47 | - apt-get -qqy install bubblewrap | ||
| 48 | - python3 -m unittest discover -v | ||
| 49 | |||
| 50 | tests:fedora: | ||
| 51 | image: $CONTAINER_REGISTRY:fedora | ||
| 52 | stage: test | ||
| 53 | script: | ||
| 54 | - python3 -m unittest discover -v | ||
| 55 | |||
| 56 | tests:gentoo: | ||
| 57 | image: $CONTAINER_REGISTRY:gentoo | ||
| 58 | stage: test | ||
| 59 | <<: *prepare_env | ||
| 60 | script: | ||
| 61 | - su - mat2 -c "python3 -m unittest discover -v" | ||
| 62 | |||
| 63 | tests:python3.7: | ||
| 64 | image: $CONTAINER_REGISTRY:python3.7 | ||
| 65 | stage: test | ||
| 66 | script: | ||
| 67 | - python3 -m unittest discover -v | ||
| 68 | |||
| 69 | tests:python3.8: | ||
| 70 | image: $CONTAINER_REGISTRY:python3.8 | ||
| 71 | stage: test | ||
| 72 | script: | ||
| 73 | - python3 -m unittest discover -v | ||
| 74 | |||
| 75 | tests:python3.9: | ||
| 76 | image: $CONTAINER_REGISTRY:python3.9 | ||
| 77 | stage: test | ||
| 78 | script: | ||
| 79 | - python3 -m unittest discover -v | ||
| 80 | |||
| 81 | tests:python3.10: | ||
| 82 | image: $CONTAINER_REGISTRY:python3.10 | ||
| 83 | stage: test | ||
| 84 | script: | ||
| 85 | - python3 -m unittest discover -v | ||
| 86 | |||
| 87 | tests:python3.11: | ||
| 88 | image: $CONTAINER_REGISTRY:python3.11 | ||
| 89 | stage: test | ||
| 90 | script: | ||
| 91 | - python3 -m unittest discover -v | ||
| 92 | |||
| 93 | tests:python3.12: | ||
| 94 | image: $CONTAINER_REGISTRY:python3.12 | ||
| 95 | stage: test | ||
| 96 | script: | ||
| 97 | - python3 -m unittest discover -v | ||
| 98 | |||
| 99 | tests:python3.13: | ||
| 100 | image: $CONTAINER_REGISTRY:python3.13 | ||
| 101 | stage: test | ||
| 102 | script: | ||
| 103 | - python3 -m unittest discover -v | ||
| 104 | |||
| 105 | tests:python3.14: | ||
| 106 | image: $CONTAINER_REGISTRY:python3.14 | ||
| 107 | stage: test | ||
| 108 | script: | ||
| 109 | - python3 -m unittest discover -v | ||
