blob: 17e25aade96f46ecfcdf1b5658d788f23b99f587 [file] [log] [blame]
Lars Schneider657343a2017-09-10 16:44:28 +02001#!/bin/sh
2#
SZEDER Gábor3c93b822018-01-08 18:22:14 +01003# Build and test Git
Lars Schneider657343a2017-09-10 16:44:28 +02004#
5
Johannes Schindelinc2160f22019-01-27 15:26:50 -08006. ${0%/*}/lib.sh
Lars Schneider657343a2017-09-10 16:44:28 +02007
Johannes Schindelin4b060a42019-01-27 15:26:53 -08008case "$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
SZEDER Gáborb2cbaa02018-01-29 18:17:11 +010012
Johannes Schindelineaa62292019-01-27 15:26:52 -080013make
SZEDER Gáborfb9d7432019-07-18 17:22:34 +020014case "$jobname" in
15linux-gcc)
16 make test
Nguyễn Thái Ngọc Duyf6a55762018-04-14 17:35:13 +020017 export GIT_TEST_SPLIT_INDEX=yes
18 export GIT_TEST_FULL_IN_PACK_ARRAY=true
19 export GIT_TEST_OE_SIZE=10
Nguyễn Thái Ngọc Duy9ac3f0e2018-07-22 10:04:21 +020020 export GIT_TEST_OE_DELTA_SIZE=5
Derrick Stolee97164c92018-10-17 06:00:34 -070021 export GIT_TEST_COMMIT_GRAPH=1
Garima Singhd5b873c2020-04-06 16:59:55 +000022 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
Derrick Stolee97164c92018-10-17 06:00:34 -070023 export GIT_TEST_MULTI_PACK_INDEX=1
Johannes Schindelinb2627cc2020-01-14 18:43:53 +000024 export GIT_TEST_ADD_I_USE_BUILTIN=1
SZEDER Gáborbbf24ad2019-01-17 02:29:11 +010025 make test
SZEDER Gáborfb9d7432019-07-18 17:22:34 +020026 ;;
27linux-gcc-4.8)
28 # Don't run the tests; we only care about whether Git can be
29 # built with GCC 4.8, as it errors out on some undesired (C99)
30 # constructs that newer compilers seem to quietly accept.
31 ;;
32*)
33 make test
34 ;;
35esac
SZEDER Gábor9cc2c762017-12-31 11:12:05 +010036
SZEDER Gáborb92cb862017-12-31 17:02:06 +010037check_unignored_build_artifacts
38
SZEDER Gábor9cc2c762017-12-31 11:12:05 +010039save_good_tree