From add1c56bca2a7d937a6c111376400028325cc366 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 14 Feb 2017 23:24:19 -0600 Subject: [PATCH 1/2] More Travis docs build tweaks - Return to always building the docs, it's a relatively cheap operation and the check was flawed anyway. - Add `make suspicious` - Do all three checks as one `make check suspicious html` invocation for earliest possible exit in case of issues. --- .travis.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 96cd9fd394723f..8df1278c28c05d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,17 +36,10 @@ matrix: env: - TESTING=docs before_script: - - | - if git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '^Doc/' - then - echo "Docs weren't updated, stopping build process." - exit - fi - cd Doc - make venv PYTHON=python3 + - cd Doc + - make venv PYTHON=python3 script: - - make html SPHINXBUILD="./venv/bin/python3 -m sphinx" SPHINXOPTS="-q" - - make check + - make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/sphinx-build" SPHINXOPTS="-q" - os: linux language: c compiler: clang From 7ff647068106dc9a3e3f7542469dc1dcbed6c909 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Tue, 14 Feb 2017 23:52:17 -0600 Subject: [PATCH 2/2] venv/bin/sphinx-build doesn't exist on Travis? --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8df1278c28c05d..9cb227230f8bc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,7 +39,7 @@ matrix: - cd Doc - make venv PYTHON=python3 script: - - make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/sphinx-build" SPHINXOPTS="-q" + - make check suspicious html PYTHON="./venv/bin/python" SPHINXBUILD="./venv/bin/python -m sphinx" SPHINXOPTS="-q" - os: linux language: c compiler: clang