-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy path.travis.yml
55 lines (49 loc) · 1.23 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
dist: bionic
language: python
python:
- "3.8"
matrix:
include:
- name: default Python + latest Sphinx
# a few older Sphinx releases using default Python version
- env: SPHINX="==1.8.1" BIBTEX="==0.4.2"
- env: SPHINX="==1.8.5" BIBTEX="==0.4.2"
- env: SPHINX="==2.0.0"
- env: SPHINX="==2.1.0"
- env: SPHINX="==2.2.0"
# a few Python versions using latest Sphinx release
- python: "3.5"
- python: "3.6"
- python: "3.7"
- python: "nightly"
- python: "pypy3"
- name: default Python + latest Sphinx
os: osx
language: generic
python: ""
allow_failures:
- python: "nightly"
addons:
apt:
packages:
- pandoc
- librsvg2-bin
homebrew:
update: true
packages:
- python
- pandoc
- librsvg
before_install:
- if [ $TRAVIS_OS_NAME = osx ]; then brew link --overwrite python; fi
install:
- python3 --version
- python3 -m pip install Sphinx$SPHINX
- python3 -m pip install .
- python3 -m pip install $(grep -iv bibtex doc/requirements.txt)
- python3 -m pip install sphinxcontrib-bibtex$BIBTEX
script:
- python3 -m nbsphinx
- python3 -m sphinx doc/ _build/ -W -b html
- python3 -m sphinx doc/ _build/ -W -b latex
- python3 -m sphinx doc/ _build/ -W -b epub