Skip to content

Commit 163af0c

Browse files
committed
build own docs in travis
1 parent 94a94cb commit 163af0c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ matrix:
1010
- name: "Python 3.7"
1111
dist: cosmic
1212
python: 3.7
13+
- name: "Docs"
14+
dist: cosmic
15+
python: 3.7
16+
# Because we are using multiple extra packages, installation is much more
17+
# involved and we use conda.
18+
install:
19+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
20+
- bash miniconda.sh -b -p $HOME/miniconda
21+
- export PATH="$HOME/miniconda/bin:$PATH"
22+
- source "$HOME"/miniconda/etc/profile.d/conda.sh
23+
- conda config --set always_yes yes --set changeps1 no
24+
- conda env create -f environment.yml
25+
- conda activate jupyter-sphinx
26+
- python -m ipykernel install --user --name python3 --display-name "Python3"
27+
- pip install .
28+
script:
29+
- make -C doc html
30+
- make -C doc latex
1331
install:
1432
- pip install .
1533
script:

0 commit comments

Comments
 (0)