]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
More Travis docs build tweaks (GH-113)
authorZachary Ware <zachary.ware@gmail.com>
Wed, 15 Feb 2017 22:18:03 +0000 (16:18 -0600)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2017 22:18:03 +0000 (16:18 -0600)
- Return to always building the docs, it's a relatively cheap operation,
  the check had a bug, and the docs build depends on other files.
- Add `make suspicious`
- Do all three checks as one `make check suspicious html` invocation for
  earliest possible exit in case of issues.

.travis.yml

index 96cd9fd394723f7a33d879e99ce57279a955f961..9cb227230f8bc5b7fc7bc738539efd0e227483b6 100644 (file)
@@ -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/python -m sphinx" SPHINXOPTS="-q"
     - os: linux
       language: c
       compiler: clang