[PATCH v1] travis-ci: build documentation
- From
larsxschneider@gmail.com <larsxschneider@gmail.com>
- Date
- Apr 22, 2016, 08:34 UTC
- Message-ID
- <1461314042-3132-1-git-send-email-larsxschneider@gmail.com>
From: Lars Schneider <larsxschneider@gmail.com>
Run "make doc" to check if all documentation can be build without errors. Since the documentation is the same on every platform/compiler, the check is only performed as part of the Linux/GCC build job to maintain a fast CI process.
Signed-off-by: Lars Schneider <larsxschneider@gmail.com> ---
Patch as promised in http://article.gmane.org/gmane.comp.version-control.git/291726
Cheers, Lars
.travis.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml index c3bf9c6..6ca7fb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,8 @@ addons: apt: packages: - language-pack-is + - asciidoc + - xmlto env: global: @@ -70,7 +72,16 @@ before_install: before_script: make --jobs=2 -script: make --quiet test +script: + - > + make --quiet test && + if [[ "$TRAVIS_OS_NAME" = linux ]] && [[ "$CC" = gcc ]]; + then + echo "" + echo "------------------------------------------------------------------------" && + echo "$(tput setaf 2)Building documentation...$(tput sgr0)" && + make --quiet doc + fi; after_failure: - > -- 2.5.1