forked from spatialaudio/nbsphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (52 loc) · 1.53 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
dist: focal
language: python
python:
- "3.9"
matrix:
include:
- name: default Python + latest Sphinx
# a few older Sphinx releases using default Python version
- env: SPHINX="==1.8.1" NOT_NITPICKY="-Dnitpicky=0"
- env: SPHINX="==1.8.5" NOT_NITPICKY="-Dnitpicky=0"
- env: SPHINX="==2.0.0" NOT_NITPICKY="-Dnitpicky=0"
- env: SPHINX="==2.2.0" NOT_NITPICKY="-Dnitpicky=0"
- env: SPHINX="==2.4.0" NOT_NITPICKY="-Dnitpicky=0"
- env: SPHINX="==3.0.0"
- env: SPHINX="==3.1.0"
# a few Python versions using latest Sphinx release
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "nightly"
- python: "pypy3"
- name: default Python + latest Sphinx
os: osx
osx_image: xcode12.2
language: generic
python: ""
allow_failures:
- python: "nightly"
- python: "pypy3"
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 -r doc/requirements.txt
script:
- python3 -m nbsphinx
- python3 -m sphinx doc/ _build/ -W $NOT_NITPICKY -Dsuppress_warnings=git.too_shallow -b html
- python3 -m sphinx doc/ _build/ -W $NOT_NITPICKY -Dsuppress_warnings=git.too_shallow -b latex
- python3 -m sphinx doc/ _build/ -W $NOT_NITPICKY -Dsuppress_warnings=git.too_shallow,epub.unknown_project_files -b epub