From 72f658c885f193fdeecfde4d86bfe2a9daa52c90 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Fri, 9 Aug 2019 16:42:42 +0200 Subject: [PATCH] TST: simplify command by global env variable (#25) --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c425c8f..aa9f4c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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/ @@ -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