]> git.ipfire.org Git - thirdparty/git.git/blob - ci/run-build-and-tests.sh
refs: print error message in debug output
[thirdparty/git.git] / ci / run-build-and-tests.sh
1 #!/bin/sh
2 #
3 # Build and test Git
4 #
5
6 . ${0%/*}/lib.sh
7
8 case "$CI_OS_NAME" in
9 windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
10 *) ln -s "$cache_dir/.prove" t/.prove;;
11 esac
12
13 export MAKE_TARGETS="all test"
14
15 case "$jobname" in
16 linux-gcc)
17 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
18 ;;
19 linux-TEST-vars)
20 export GIT_TEST_SPLIT_INDEX=yes
21 export GIT_TEST_MERGE_ALGORITHM=recursive
22 export GIT_TEST_FULL_IN_PACK_ARRAY=true
23 export GIT_TEST_OE_SIZE=10
24 export GIT_TEST_OE_DELTA_SIZE=5
25 export GIT_TEST_COMMIT_GRAPH=1
26 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
27 export GIT_TEST_MULTI_PACK_INDEX=1
28 export GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP=1
29 export GIT_TEST_ADD_I_USE_BUILTIN=1
30 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
31 export GIT_TEST_WRITE_REV_INDEX=1
32 export GIT_TEST_CHECKOUT_WORKERS=2
33 ;;
34 linux-clang)
35 export GIT_TEST_DEFAULT_HASH=sha1
36 ;;
37 linux-sha256)
38 export GIT_TEST_DEFAULT_HASH=sha256
39 ;;
40 pedantic)
41 # Don't run the tests; we only care about whether Git can be
42 # built.
43 export DEVOPTS=pedantic
44 export MAKE_TARGETS=all
45 ;;
46 esac
47
48 # Any new "test" targets should not go after this "make", but should
49 # adjust $MAKE_TARGETS. Otherwise compilation-only targets above will
50 # start running tests.
51 make $MAKE_TARGETS
52 check_unignored_build_artifacts
53
54 save_good_tree