2019-11-09 02:41:18 +00:00
|
|
|
image: registry.gitlab.com/paddy-hack/sphinx/debian/pdf:2.2.1
|
|
|
|
|
2020-02-15 02:53:20 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- publish
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
- apt-get update -qq
|
|
|
|
- apt-get install -qqy --no-install-recommends
|
|
|
|
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 linkcheck . _build/
|
|
|
|
|
2019-11-09 02:41:18 +00:00
|
|
|
pages:
|
2020-02-15 02:53:20 +00:00
|
|
|
stage: publish
|
2020-02-15 03:26:00 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
|
|
- if: '$CI_COMMIT_BRANCH == "draft-2"'
|
2019-11-09 02:41:18 +00:00
|
|
|
before_script:
|
|
|
|
- apt-get update -qq
|
|
|
|
- apt-get install -qqy --no-install-recommends
|
|
|
|
python3-setuptools
|
|
|
|
python3-wheel
|
|
|
|
git
|
|
|
|
- pip3 --quiet install -r requirements.txt
|
|
|
|
script:
|
2020-02-15 03:26:00 +00:00
|
|
|
- sphinx-versioning build -w master -w draft-2
|
|
|
|
-P sane-standard.pdf . public/
|
2019-11-09 02:41:18 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|