From 3a5d8c0335208f13159857bb745d33d1abaf8912 Mon Sep 17 00:00:00 2001 From: Karel van Klink <karel.vanklink@geant.org> Date: Tue, 3 Dec 2024 13:54:10 +0100 Subject: [PATCH] Skip CI on release branches since this always fails anyway --- .gitlab-ci.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f04ddf50..a8ffa2a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,10 +13,10 @@ run-tox-pipeline: tags: - docker-executor image: python:3.12 - + except: + - /^release\/*/ services: - postgres:14 - # Change pip's cache directory to be inside the project directory since we can # only cache local items. variables: @@ -25,22 +25,18 @@ run-tox-pipeline: POSTGRES_PASSWORD: nwa DATABASE_HOST: "postgres" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - cache: key: tox-virtualenv paths: - .cache/pip - venv/ - before_script: - pip install virtualenv - virtualenv venv - . venv/bin/activate - pip install tox - script: - tox - artifacts: paths: - htmlcov @@ -51,12 +47,10 @@ build-documentation: tags: - docker-executor image: python:3.12 - before_script: - cd $CI_PROJECT_DIR/docs script: - /bin/sh ./build-docs.sh - artifacts: paths: - docs/public @@ -67,17 +61,14 @@ lint-documentation: image: name: jdkato/vale:latest entrypoint: [""] - tags: - docker-executor needs: - job: build-documentation # Only run when documentation has been built artifacts: true - before_script: - cd $CI_PROJECT_DIR/docs/vale - vale sync - script: - vale --glob='!*/migrations/*' $CI_PROJECT_DIR/docs/source $CI_PROJECT_DIR/gso/ -- GitLab