2023-10-13 04:42:40 +00:00
|
|
|
image: registry.gitlab.com/paddy-hack/sphinx/debian:7.2.6
|
2019-11-09 02:41:18 +00:00
|
|
|
|
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
|
2023-10-13 04:42:40 +00:00
|
|
|
git
|
2020-02-13 12:19:34 +00:00
|
|
|
python3-enchant
|
2023-10-13 04:42:40 +00:00
|
|
|
python3-pip
|
2020-02-15 02:53:20 +00:00
|
|
|
python3-setuptools
|
|
|
|
python3-wheel
|
2023-10-13 04:42:40 +00:00
|
|
|
git
|
2020-02-15 02:53:20 +00:00
|
|
|
- pip3 --quiet install -r requirements.txt
|
2023-10-13 04:42:40 +00:00
|
|
|
- apt-get install -qqy --no-install-recommends
|
|
|
|
latexmk
|
|
|
|
texlive-latex-base
|
|
|
|
texlive-latex-recommended
|
|
|
|
texlive-fonts-recommended
|
|
|
|
texlive-latex-extra
|
2020-02-15 02:53:20 +00:00
|
|
|
script:
|
|
|
|
# Prevent versioning support from kicking in as that breaks
|
|
|
|
# sphinx-build invocations.
|
|
|
|
- unset CI
|
2020-02-13 12:19:34 +00:00
|
|
|
- sphinx-build -M spelling . _build/ -W --keep-going
|
2020-02-16 08:40:45 +00:00
|
|
|
- sphinx-build -M linkcheck . _build/
|
2020-02-15 02:53:20 +00:00
|
|
|
|
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
|
2020-02-15 09:11:56 +00:00
|
|
|
python3-enchant
|
2023-10-13 04:42:40 +00:00
|
|
|
python3-pip
|
2019-11-09 02:41:18 +00:00
|
|
|
python3-setuptools
|
|
|
|
python3-wheel
|
|
|
|
git
|
|
|
|
- pip3 --quiet install -r requirements.txt
|
2023-10-13 04:42:40 +00:00
|
|
|
- apt-get install -qqy --no-install-recommends
|
|
|
|
latexmk
|
|
|
|
texlive-latex-base
|
|
|
|
texlive-latex-recommended
|
|
|
|
texlive-fonts-recommended
|
|
|
|
texlive-latex-extra
|
2019-11-09 02:41:18 +00:00
|
|
|
script:
|
2020-02-15 03:26:00 +00:00
|
|
|
- sphinx-versioning build -w master -w draft-2
|
2020-02-15 12:25:51 +00:00
|
|
|
--show-banner --banner-main-ref 1.06
|
2020-02-15 03:26:00 +00:00
|
|
|
-P sane-standard.pdf . public/
|
2019-11-09 02:41:18 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|