]> git.ipfire.org Git - thirdparty/git.git/blame - ci/run-build-and-tests.sh
Merge branch 'ab/pager-exit-log'
[thirdparty/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)
334afbc7 16 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
fb9d7431 17 make test
f6a5576d
NTND
18 export GIT_TEST_SPLIT_INDEX=yes
19 export GIT_TEST_FULL_IN_PACK_ARRAY=true
20 export GIT_TEST_OE_SIZE=10
9ac3f0e5 21 export GIT_TEST_OE_DELTA_SIZE=5
97164c9f 22 export GIT_TEST_COMMIT_GRAPH=1
d5b873c8 23 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
97164c9f 24 export GIT_TEST_MULTI_PACK_INDEX=1
b2627cc3 25 export GIT_TEST_ADD_I_USE_BUILTIN=1
334afbc7 26 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
e8c58f89 27 export GIT_TEST_WRITE_REV_INDEX=1
bbf24adb 28 make test
fb9d7431 29 ;;
8a06d56c 30linux-clang)
31 export GIT_TEST_DEFAULT_HASH=sha1
32 make test
33 export GIT_TEST_DEFAULT_HASH=sha256
34 make test
35 ;;
fb9d7431
SG
36linux-gcc-4.8)
37 # Don't run the tests; we only care about whether Git can be
38 # built with GCC 4.8, as it errors out on some undesired (C99)
39 # constructs that newer compilers seem to quietly accept.
40 ;;
41*)
42 make test
43 ;;
44esac
9cc2c76f 45
b92cb86e
SG
46check_unignored_build_artifacts
47
9cc2c76f 48save_good_tree