]> git.ipfire.org Git - thirdparty/git.git/blame - ci/run-build-and-tests.sh
Start the 2.46 cycle
[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
b95181cf 13run_tests=t
cebead1e 14
fb9d7431
SG
15case "$jobname" in
16linux-gcc)
334afbc7 17 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
25715419
ÆAB
18 ;;
19linux-TEST-vars)
f6a5576d 20 export GIT_TEST_SPLIT_INDEX=yes
f3b964a0 21 export GIT_TEST_MERGE_ALGORITHM=recursive
f6a5576d
NTND
22 export GIT_TEST_FULL_IN_PACK_ARRAY=true
23 export GIT_TEST_OE_SIZE=10
9ac3f0e5 24 export GIT_TEST_OE_DELTA_SIZE=5
97164c9f 25 export GIT_TEST_COMMIT_GRAPH=1
d5b873c8 26 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
97164c9f 27 export GIT_TEST_MULTI_PACK_INDEX=1
ff1e653c 28 export GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP=1
334afbc7 29 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
9f7f10a2 30 export GIT_TEST_NO_WRITE_REV_INDEX=1
87094fc2 31 export GIT_TEST_CHECKOUT_WORKERS=2
b0afdce5 32 export GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL=1
fb9d7431 33 ;;
8a06d56c 34linux-clang)
35 export GIT_TEST_DEFAULT_HASH=sha1
25715419
ÆAB
36 ;;
37linux-sha256)
8a06d56c 38 export GIT_TEST_DEFAULT_HASH=sha256
8a06d56c 39 ;;
c0350cb9
PS
40linux-reftable|linux-reftable-leaks|osx-reftable)
41 export GIT_TEST_DEFAULT_REF_FORMAT=reftable
42 ;;
4a6e4b96 43pedantic)
fb9d7431 44 # Don't run the tests; we only care about whether Git can be
4a6e4b96 45 # built.
25715419 46 export DEVOPTS=pedantic
b95181cf 47 run_tests=
fb9d7431
SG
48 ;;
49esac
9cc2c76f 50
dab73aeb 51group Build make
b95181cf
JS
52if test -n "$run_tests"
53then
dab73aeb 54 group "Run tests" make test ||
08dccc8f 55 handle_failed_tests
d8f416bb
JS
56 group "Run unit tests" \
57 make DEFAULT_UNIT_TEST_TARGET=unit-tests-prove unit-tests
b95181cf 58fi
b92cb86e
SG
59check_unignored_build_artifacts
60
9cc2c76f 61save_good_tree