Skip to content

Commit

Permalink
TST: simplify command by global env variable (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Aug 9, 2019
1 parent c9a6db7 commit 72f658c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
language: python
python:
- "3.6"
env:
- FOLDER="docs"
matrix:
include:

# Default Python + latest Sphinx + check for broken links
- env: ADDITIONAL_COMMAND="python -m sphinx docs/ docs/_build/ -b linkcheck -W"
- env: ADDITIONAL_COMMAND="python -m sphinx docs/ docs/_build/ -b linkcheck -W" FOLDER="docs"

# A few older Sphinx releases using default Python version and stripped down
# example from tests/
Expand All @@ -32,9 +34,9 @@ install:
- pip install sphinx$SPHINX
- python setup.py install
script:
- python -m sphinx ${FOLDER:-docs} ${FOLDER:-docs}/_build/ -c docs/ -b html -W
- python -m sphinx ${FOLDER:-docs} ${FOLDER:-docs}/_build/ -c docs/ -b latex -W
- python -m sphinx $FOLDER $FOLDER/_build/ -c docs/ -b html -W
- python -m sphinx $FOLDER $FOLDER/_build/ -c docs/ -b latex -W
# Test server side prerendering
- katex -V
- python -m sphinx ${FOLDER:-docs} ${FOLDER:-docs}/_build/ -c docs/ -b html -D katex_prerender=1 -W
- python -m sphinx $FOLDER $FOLDER/_build/ -c docs/ -b html -D katex_prerender=1 -W
- $ADDITIONAL_COMMAND

0 comments on commit 72f658c

Please sign in to comment.