Commit 567bf581 authored by ng's avatar ng

Merge branch '40-ci-introduce-job-to-check-for-broken-links' into 'master'

CI: Check pushed branches for broken links

Closes #40

See merge request !56
parents 30f37d3c 4ae303e8
Pipeline #22311 passed with stages
in 59 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment