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

5
ci/lib-travisci.sh Executable file
View File

@ -0,0 +1,5 @@
# Library of functions shared by all CI scripts
# Set 'exit on error' for all CI scripts to let the caller know that
# something went wrong
set -e