Merge branch 'sg/travis-gcc-4.8'
[git/git.git] / ci / run-build-and-tests.sh
CommitLineData
657343a6
LS
1#!/bin/sh
2#
3c93b829 3# Build and test Git
657343a6
LS
4#
5
c2160f2d 6. ${0%/*}/lib.sh
657343a6 7
4b060a4d
JS
8case "$CI_OS_NAME" in
9windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
10*) ln -s "$cache_dir/.prove" t/.prove;;
11esac
b2cbaa09 12
eaa62291 13make
fb9d7431
SG
14case "$jobname" in
15linux-gcc)
16 make test
f6a5576d
NTND
17 export GIT_TEST_SPLIT_INDEX=yes
18 export GIT_TEST_FULL_IN_PACK_ARRAY=true
19 export GIT_TEST_OE_SIZE=10
9ac3f0e5 20 export GIT_TEST_OE_DELTA_SIZE=5
97164c9f
DS
21 export GIT_TEST_COMMIT_GRAPH=1
22 export GIT_TEST_MULTI_PACK_INDEX=1
bbf24adb 23 make test
fb9d7431
SG
24 ;;
25linux-gcc-4.8)
26 # Don't run the tests; we only care about whether Git can be
27 # built with GCC 4.8, as it errors out on some undesired (C99)
28 # constructs that newer compilers seem to quietly accept.
29 ;;
30*)
31 make test
32 ;;
33esac
9cc2c76f 34
b92cb86e
SG
35check_unignored_build_artifacts
36
9cc2c76f 37save_good_tree