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

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-22 14:24:08 -07:00
commit 573ce039f3
3 changed files with 4 additions and 15 deletions

View File

@ -33,7 +33,6 @@ matrix:
compiler: compiler:
addons: addons:
before_install: before_install:
before_script:
script: script:
- > - >
test "$TRAVIS_REPO_SLUG" != "git/git" || test "$TRAVIS_REPO_SLUG" != "git/git" ||
@ -46,7 +45,6 @@ matrix:
services: services:
- docker - docker
before_install: before_install:
before_script:
script: ci/run-linux32-docker.sh script: ci/run-linux32-docker.sh
- env: jobname=StaticAnalysis - env: jobname=StaticAnalysis
os: linux os: linux
@ -56,7 +54,6 @@ matrix:
packages: packages:
- coccinelle - coccinelle
before_install: before_install:
before_script:
script: ci/run-static-analysis.sh script: ci/run-static-analysis.sh
after_failure: after_failure:
- env: jobname=Documentation - env: jobname=Documentation
@ -68,13 +65,11 @@ matrix:
- asciidoc - asciidoc
- xmlto - xmlto
before_install: before_install:
before_script:
script: ci/test-documentation.sh script: ci/test-documentation.sh
after_failure: after_failure:
before_install: ci/install-dependencies.sh before_install: ci/install-dependencies.sh
before_script: ci/run-build.sh script: ci/run-build-and-tests.sh
script: ci/run-tests.sh
after_failure: ci/print-test-failures.sh after_failure: ci/print-test-failures.sh
notifications: notifications:

View File

@ -1,11 +1,13 @@
#!/bin/sh #!/bin/sh
# #
# Test Git # Build and test Git
# #
. ${0%/*}/lib-travisci.sh . ${0%/*}/lib-travisci.sh
ln -s $HOME/travis-cache/.prove t/.prove ln -s $HOME/travis-cache/.prove t/.prove
make --jobs=2
make --quiet test make --quiet test
check_unignored_build_artifacts check_unignored_build_artifacts

View File

@ -1,8 +0,0 @@
#!/bin/sh
#
# Build Git
#
. ${0%/*}/lib-travisci.sh
make --jobs=2