-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
50 lines (41 loc) · 1.3 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
image: ubuntu:latest
before_script:
- apt-get -qq update
# Install Python3 dependencies
- apt-get install -y -qq python3-pip python3-dev
- python3 -m pip install --upgrade setuptools
# Install Sphinx Latex PDF dependencies
- DEBIAN_FRONTEND="noninteractive" apt-get install -y -qq texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk
# Install Sphinx
# docutils 0.17 currently breaks generation, set to 0.16 instead: https://github.com/readthedocs/sphinx_rtd_theme/issues/1115#issuecomment-814376813
- python3 -m pip install --upgrade sphinx sphinx-rtd-theme docutils==0.16
# Install Lint tools
- DEBIAN_FRONTEND="noninteractive" apt-get install -y -qq enchant git
- python3 -m pip install --upgrade doc8 pyenchant sphinxcontrib-spelling
stages:
- build
- style
build:
stage: build
script:
- make html
- make latexpdf
artifacts:
paths:
- _build/html/
- _build/latex/rosi-apci.pdf
expire_in: 1 day
style:
stage: style
script:
# Run Doc8 Lint
- doc8 --ignore-path _build
# Check Spelling
- make spelling
- find . -name *.spelling -exec cat {} \;
- sh -c "! find . -name *.spelling | grep -q ."