Skip to content

Commit a68b8e2

Browse files
committed
Travis-CI: make script selection a bit nicer (arguably)
1 parent 5834e9b commit a68b8e2

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.travis.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ matrix:
1717
apt:
1818
packages:
1919
- pandoc
20+
script:
21+
- cd docs
22+
- make html
23+
- make linkcheck
24+
- cd ..
25+
- python -m pytest_check_links
2026
cache:
2127
pip: true
2228
directories:
@@ -27,15 +33,4 @@ before_install:
2733
install:
2834
- pip install --upgrade -e ".[test, examples, docs]"
2935
script:
30-
- |
31-
if [[ $GROUP == python ]]; then
32-
py.test -l --nbval-lax --current-env examples;
33-
elif [[ $GROUP == docs ]]; then
34-
EXIT_STATUS=0
35-
cd docs
36-
make html || EXIT_STATUS=$?
37-
make linkcheck || EXIT_STATUS=$?
38-
cd ..
39-
python -m pytest_check_links || EXIT_STATUS=$? ;
40-
(exit $EXIT_STATUS)
41-
fi
36+
- py.test -l --nbval-lax --current-env examples

0 commit comments

Comments
 (0)