travis-ci: save prove state for the 32 bit Linux build

This change follows suit of 6272ed319 (travis-ci: run previously failed tests first, then slowest to fastest, 2016-01-26), which did this for the Linux and OSX build jobs. Travis CI build jobs run the tests parallel, which is sligtly faster when tests are run in slowest to fastest order, shortening the overall runtime of this build job by about a minute / 10%. Note, that the 32 bit Linux build job runs the tests suite in a Docker container and we have to share the Travis CI cache directory with the container as a second volume. Otherwise we couldn't use a symlink pointing to the prove state file in the cache directory, because that's outside of the directory hierarchy accessible from within the container. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Reviewed-by: Lars Schneider <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

SZEDER Gábor committed Dec 27, 2017 at 17:36 UTC 7e72cfceed2e1e74e6bbe8ab41cacda4a66b0e4a
2 files changed +2
ci/run-linux32-build.sh
+1
@@ -27,6 +27,7 @@ test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER) &&
27 # Build and test
28 linux32 --32bit i386 su -m -l $CI_USER -c '
29 cd /usr/src/git &&
30 + ln -s /tmp/travis-cache/.prove t/.prove &&
31 make --jobs=2 &&
32 make --quiet test
33 '
ci/run-linux32-docker.sh
+1
@@ -19,5 +19,6 @@ docker run \
19 --env GIT_TEST_OPTS \
20 --env GIT_TEST_CLONE_2GB \
21 --volume "${PWD}:/usr/src/git" \
22 + --volume "${HOME}/travis-cache:/tmp/travis-cache" \
23 daald/ubuntu32:xenial \
24 /usr/src/git/ci/run-linux32-build.sh $(id -u $USER)