Merge branch 'sg/travis-build-during-script-phase'

Build the executable in 'script' phase in Travis CI integration, to
follow the established practice, rather than during 'before_script'
phase.  This allows the CI categorize the failures better ('failed'
is project's fault, 'errored' is build environment's).

* sg/travis-build-during-script-phase:
  travis-ci: build Git during the 'script' phase
This commit is contained in:
Junio C Hamano
2018-03-08 12:36:23 -08:00
3 changed files with 3 additions and 15 deletions

19
ci/run-build-and-tests.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
#
# Build and test Git
#
. ${0%/*}/lib-travisci.sh
ln -s "$cache_dir/.prove" t/.prove
make --jobs=2
make --quiet test
if test "$jobname" = "linux-gcc"
then
GIT_TEST_SPLIT_INDEX=YesPlease make --quiet test
fi
check_unignored_build_artifacts
save_good_tree