git-commit-vandalism/ci
Thomas Gummerer ae59a4e44f travis: run tests with GIT_TEST_SPLIT_INDEX
Split index mode only has a few dedicated tests, but as the index is
involved in nearly every git operation, this doesn't quite cover all the
ways repositories with split index can break.  To use split index mode
throughout the test suite a GIT_TEST_SPLIT_INDEX environment variable
can be set, which makes git split the index at random and thus
excercises the functionality much more thoroughly.

As this is not turned on by default, it is not executed nearly as often
as the test suite is run, so occationally breakages slip through.  Try
to counteract that by running the test suite with GIT_TEST_SPLIT_INDEX
mode turned on on travis.

To avoid using too many cycles on travis only run split index mode in
the linux-gcc target only.  The Linux build was chosen over the Mac OS
builds because it tends to be much faster to complete.

The linux gcc build was chosen over the linux clang build because the
linux clang build is the fastest build, so it can serve as an early
indicator if something is broken and we want to avoid spending the extra
cycles of running the test suite twice for that.

Helped-by: Lars Schneider <larsxschneider@gmail.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-01-19 10:36:40 -08:00
..
install-dependencies.sh travis-ci: fix running P4 and Git LFS tests in Linux build jobs 2017-11-02 11:05:28 +09:00
lib-travisci.sh travis-ci: fix running P4 and Git LFS tests in Linux build jobs 2017-11-02 11:05:28 +09:00
print-test-failures.sh travis: dedent a few scripts that are indented overly deeply 2017-09-11 10:18:29 +09: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: also test on 32-bit Linux 2017-03-06 11:19:09 -08:00
run-linux32-docker.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-static-analysis.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
run-tests.sh travis: run tests with GIT_TEST_SPLIT_INDEX 2018-01-19 10:36:40 -08:00
run-windows-build.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00
test-documentation.sh travis-ci: move Travis CI code into dedicated scripts 2017-09-11 09:54:08 +09:00