forked from lipro/lpn-doc-sphinx-primer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
87 lines (78 loc) · 1.95 KB
/
.travis.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# .travis.yml
# Travis CI configuration file
# See https://docs.travis-ci.com/ and https://config.travis-ci.com/ for details
# Inspired by https://sphinxtechnicalwriting.readthedocs.io/
# Do not shallow clone when cloning git repos.
# See https://docs.travis-ci.com/user/customizing-the-build#git-clone-depth
#
# remove the --depth flag entirely with:
#
git:
depth: false
# Python 3.8 on Ubuntu Linux 18.04 "Bionic" (amd64) for Sphinx/DOC
os: Linux
dist: bionic
arch: amd64
addons:
apt:
update: true
packages:
- librsvg2-bin
- pdf2svg
- unifont
- fonts-dejavu
- fonts-wqy-microhei
- fonts-font-awesome
- latexmk
- xindy
- texlive-latex-extra
- texlive-pictures
- texlive-science
- texlive-xetex
- texlive-fonts-recommended
- texlive-fonts-extra
- texlive-lang-european
- texlive-lang-english
- enchant
- aspell
- aspell-en
- aspell-de
- wamerican-huge
- wngerman
- wgerman-medical
branches:
only:
- master
language: python
python: "3.8"
cache:
directories:
- $HOME/.cache/pip
- ./docs/_static/fonts
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
install:
- pip install -U pip
- pip install -U pipenv
- pipenv install --no-site-packages -r tools/requirements.txt
script:
- skip # Travis requires a `script` property, but we do not need it
stages:
- build and test
- deploy
jobs:
include:
- stage: build and test # This stage builds and lints in parallel
name: Build
script: pipenv run make html # build the docs
- script: pipenv run make doctest coverage linkcheck spelling # run checks
name: Test
- stage: deploy
name: Deploy to GitHub Pages
if: (NOT type IN (pull_request)) AND (branch = master) # only deploy if merging on master
script: pipenv run make html
deploy:
provider: pages # deploy on github pages
skip_cleanup: true
github_token: "$GHT" # defined via the Travis interface
local_dir: build/html