travis: Turn warnings into errors when doing Sphinx builds
Pull requests containing build errors will be marked as bad Travis
builds when doing builds with SPHINXOPTS="-W --keep-going". This makes
it easy to catch the warnings without having to open you the Travis
build log. Previously this wasn't the case, the Travis builds showed up
as successful builds in a GitHub pull request even though it contained
build warnings.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/.travis.yml b/.travis.yml
index 9b7fbf3..38e7807 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,4 +16,4 @@
- email: false
script:
- - make html
+ - SPHINXOPTS="-W --keep-going" make html