travis-ci: move Travis CI code into dedicated scripts

Most of the Travis CI commands are in the '.travis.yml'. The yml format
does not support functions and therefore code duplication is necessary
to run commands across all builds.

To fix this, add a library for common CI functions. Move all Travis CI
code into dedicated scripts and make them call the library first.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Lars Schneider
2017-09-10 16:44:28 +02:00
committed by Junio C Hamano
parent edc74bc7f0
commit 657343a602
10 changed files with 128 additions and 81 deletions

View File

@ -3,7 +3,9 @@
# Perform sanity checks on documentation and build it.
#
set -e
. ${0%/*}/lib-travisci.sh
gem install asciidoctor
make check-builtins
make check-docs