sane-project-standard/.gitlab-ci.yml

59 wiersze
1.6 KiB
YAML

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
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
python3-setuptools
python3-wheel
2023-10-13 04:42:40 +00:00
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
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
- sphinx-build -M linkcheck . _build/
2019-11-09 02:41:18 +00:00
pages:
stage: publish
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:
- sphinx-versioning build -w master -w draft-2
--show-banner --banner-main-ref 1.06
-P sane-standard.pdf . public/
2019-11-09 02:41:18 +00:00
artifacts:
paths:
- public