image: registry.gitlab.com/paddy-hack/sphinx/debian/pdf:2.2.1 stages: - test - publish test: stage: test before_script: - apt-get update -qq - apt-get install -qqy --no-install-recommends python3-enchant python3-setuptools python3-wheel - pip3 --quiet install -r requirements.txt script: # Prevent versioning support from kicking in as that breaks # sphinx-build invocations. - unset CI - sphinx-build -M spelling . _build/ -W --keep-going - sphinx-build -M linkcheck . _build/ pages: stage: publish rules: - if: '$CI_COMMIT_BRANCH == "master"' - if: '$CI_COMMIT_BRANCH == "draft-2"' before_script: - apt-get update -qq - apt-get install -qqy --no-install-recommends python3-enchant python3-setuptools python3-wheel git - pip3 --quiet install -r requirements.txt script: - sphinx-versioning build -w master -w draft-2 --show-banner --banner-main-ref 1.06 -P sane-standard.pdf . public/ artifacts: paths: - public