Re: [PATCH v1] travis-ci: build documentation
Am 22.04.2016 um 10:34 schrieb larsxschneider@gmail.com:
> From: Lars Schneider <larsxschneider@gmail.com>
>
> Run "make doc" to check if all documentation can be build without errors.
Show 46 quoted lines
> 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:
> - >
--
----------------------------------------------------------------
/dev/random says: The cat that ate the ball of yarn....had mittens!
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9 9666 829B 49C5 9221 27AF