git-commit-vandalism/ci
SZEDER Gábor 04d47e969a travis-ci: use 'set -e' in the 32 bit Linux build job
The script 'ci/run-linux32-build.sh' running inside the Docker
container of the 32 bit Linux build job uses an && chain to break the
build if one of the commands fails.  This is problematic for two
reasons:

  - The && chain is broken, because there is this in the middle:

    test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER) &&

    Luckily it is broken in a way that it didn't lead to false
    successes.  If installing dependencies fails, then the rest of the
    first && chain is skipped and execution resumes  after the ||
    operator.  At that point $HOST_UID is still unset, causing
    'useradd' to error out with "invalid user ID 'ci'", which in turn
    causes the second && chain to abort the script and thus break the
    build.

  - All other 'ci/*' scripts use 'set -e' to break the build if one of
    the commands fails.  This inconsistency among these scripts is
    asking for trouble: I forgot about the && chain more than once
    while working on this patch series.

Enable 'set -e' for the whole script and for the commands executed
under 'su' as well.

While touching every line in the 'su' command block anyway, change
their indentation to use a tab instead of spaces.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-01-30 13:27:18 -08:00
..
install-dependencies.sh travis-ci: set GIT_TEST_HTTPD in 'ci/lib-travisci.sh' 2017-12-12 12:58:28 -08:00
lib-travisci.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00
print-test-failures.sh travis-ci: only print test failures if there are test results available 2017-12-27 12:15:22 -08:00
run-build.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-linux32-build.sh travis-ci: use 'set -e' in the 32 bit Linux build job 2018-01-30 13:27:18 -08:00
run-linux32-docker.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00
run-static-analysis.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
run-tests.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00
run-windows-build.sh travis-ci: record and skip successfully built trees 2018-01-02 11:25:58 -08:00
test-documentation.sh travis-ci: check that all build artifacts are .gitignore-d 2018-01-03 13:29:19 -08:00