.gitlab-ci.yml 979 Bytes
Newer Older
Alan O'Cais's avatar
Alan O'Cais committed
1
image: cloudcompass/docker-rtdsphinx
2

Alan O'Cais's avatar
Alan O'Cais committed
3 4
spelling:
  script:
Alan O'Cais's avatar
Alan O'Cais committed
5
  - pip3 install codespell
David W.H. Swenson's avatar
David W.H. Swenson committed
6
  - codespell --skip=".git,_static,_build,Diff*,*.patch,*.f90" --quiet-level=2 --ignore-words-list="adress,catalogue,noe"
Alan O'Cais's avatar
Alan O'Cais committed
7 8 9 10
  only:
  - master
  - merge_requests

Alan O'Cais's avatar
Alan O'Cais committed
11 12
orphans:
  script:
13 14 15
  # Report all the orphans but ignore the exit code
  - find ./ -name "*.rst"|xargs -i grep -H orphan {} || true
  # Now handle the error code
16
  - if [ $(find ./ -name "*.rst"|xargs -i grep -H orphan {}|wc -l) -gt "2" ]; then $(exit 1); else $(exit 0); fi
Alan O'Cais's avatar
Alan O'Cais committed
17 18 19
  only:
  - master

20 21
pages:
  script:
Alan O'Cais's avatar
Alan O'Cais committed
22
  - apt-get -y install dvipng
Alan O'Cais's avatar
Alan O'Cais committed
23 24 25
  - pip3 install pygments --upgrade
  - pip3 install Sphinx --upgrade
  - pip3 install sphinx-bootstrap-theme --upgrade
26
  - READTHEDOCS=True sphinx-build -nWT -b html . _build/html
27
  - mv _build/html/ public/
28
  - echo -e "\n\n\e[1mYou can find your build of this documentation at \n\t\e[32m${CI_PAGES_URL}\e[0m\n\n"
29 30 31 32 33
  artifacts:
    paths:
    - public
  only:
  - master
Alan O'Cais's avatar
Alan O'Cais committed
34
  - merge_requests