Skip to content

Commit ddc5804

Browse files
committed
Run linkcheck for docs in CI
1 parent fa46747 commit ddc5804

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.travis.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
language: python
22
python:
3+
- 3.6
34
- 3.5
45
- 3.4
56
- 2.7
67
sudo: false
8+
env:
9+
matrix:
10+
- GROUP=python
11+
matrix:
12+
include:
13+
- python: 3.5
14+
env: GROUP=docs
715
cache:
816
pip: true
917
directories:
@@ -12,7 +20,16 @@ before_install:
1220
- pip install -U pip setuptools
1321
- nvm install 6
1422
install:
15-
- pip install --upgrade -e ".[test, examples]"
23+
- pip install --upgrade -e ".[test, examples, docs]"
1624
script:
17-
- py.test -l --nbval-lax --current-env examples
18-
- python -m pytest_check_links
25+
- if [[ $GROUP == python ]]; then
26+
py.test -l --nbval-lax --current-env examples
27+
elif [[ $GROUP == js ]]; then
28+
EXIT_STATUS=0
29+
cd docs
30+
make html || EXIT_STATUS=$?
31+
make linkcheck || EXIT_STATUS=$?
32+
cd ..
33+
python -m pytest_check_links || EXIT_STATUS=$?
34+
exit $EXIT_STATUS
35+
fi

0 commit comments

Comments
 (0)