diff options
-rw-r--r-- | .gitlab-ci.yml | 47 |
1 files changed, 35 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50c3ce9..f160e86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,9 +2,9 @@ image: debian:unstable stages: - - static - build - deploy + - qa cache: paths: @@ -29,17 +29,6 @@ cache: # To keep things DRY, use an env var to handle packages to be installed via APT - apt-get install -qq -y $APT_INSTALL_PACKAGES -codespell: - variables: - APT_INSTALL_PACKAGES: codespell - <<: *setup_apt - script: - # Run codespell to check for spelling errors, using a config with ignored words, - # ignoring warnings about binary files and to check file names as well. - # Also, exclude the vendor dir, which leads to false positives. - - codespell -q 2 -f -I utils/ci/codespell/ignored_words.txt -S vendor - stage: static - build: variables: APT_INSTALL_PACKAGES: jekyll @@ -95,3 +84,37 @@ deploy: only: # This job relies on secret env vars, which are only available in our repo. - branches@schleuder/schleuder-website + +codespell: + variables: + APT_INSTALL_PACKAGES: codespell + <<: *setup_apt + script: + # Run codespell to check for spelling errors, using a config with ignored words, + # ignoring warnings about binary files and to check file names as well. + # Also, exclude the vendor dir, which leads to false positives. + - codespell -q 2 -f -I utils/ci/codespell/ignored_words.txt -S vendor + # This job should help with merge requests. Therefore, don't run it + # against the master branch. + only: + - branches + except: + - master + stage: qa + +linkcheck: + variables: + APT_INSTALL_PACKAGES: linkchecker + <<: *setup_apt + script: + # Run linkchecker against the pushed (and deployed) branch. Exclude mailto: links, as the ones + # which we commonly use miss a MX record. + - linkchecker --check-extern --ignore-url=mailto https://schleuder.org/review/$CI_COMMIT_REF_SLUG + only: + # This job relies on secret env vars, which are only available in our repo. + - branches@schleuder/schleuder-website + except: + # This job should help with merge requests, so there is no point in running it against the master + # branch. + - master@schleuder/schleuder-website + stage: qa |