]> granicus.if.org Git - python/commitdiff
Update Travis Doc build config (GH-1565)
authorZachary Ware <zachary.ware@gmail.com>
Sat, 13 May 2017 15:05:53 +0000 (10:05 -0500)
committerGitHub <noreply@github.com>
Sat, 13 May 2017 15:05:53 +0000 (10:05 -0500)
Build the 'suspicious' doc target, turn on warnings-as-errors on the
docs, and always build the docs.  This better matches master's doc build
setup.

.travis.yml

index 5aa7d0b81cdcff6aa38fb5420117e2b3467f9d64..16fd0251091fd38eb93e5ed117f2da359c00df09 100644 (file)
@@ -27,17 +27,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
+        - cd Doc
         - pip install -U Sphinx
       script:
-        - make html SPHINXOPTS="-q"
-        - make check
+        - make check suspicious html SPHINXOPTS="-q -W"
 
 # Travis provides only 2 cores, so don't overdue the parallelism and waste memory.
 before_script: