]> git.ipfire.org Git - thirdparty/git.git/blob - ci/run-build-and-tests.sh
repo-settings: rename the traditional default fetch.negotiationAlgorithm
[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 if test "$jobname" = "pedantic"
14 then
15 export DEVOPTS=pedantic
16 fi
17
18 make
19 case "$jobname" in
20 linux-gcc)
21 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
22 make test
23 export GIT_TEST_SPLIT_INDEX=yes
24 export GIT_TEST_MERGE_ALGORITHM=recursive
25 export GIT_TEST_FULL_IN_PACK_ARRAY=true
26 export GIT_TEST_OE_SIZE=10
27 export GIT_TEST_OE_DELTA_SIZE=5
28 export GIT_TEST_COMMIT_GRAPH=1
29 export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
30 export GIT_TEST_MULTI_PACK_INDEX=1
31 export GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP=1
32 export GIT_TEST_ADD_I_USE_BUILTIN=1
33 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
34 export GIT_TEST_WRITE_REV_INDEX=1
35 export GIT_TEST_CHECKOUT_WORKERS=2
36 make test
37 ;;
38 linux-clang)
39 export GIT_TEST_DEFAULT_HASH=sha1
40 make test
41 export GIT_TEST_DEFAULT_HASH=sha256
42 make test
43 ;;
44 linux-gcc-4.8|pedantic)
45 # Don't run the tests; we only care about whether Git can be
46 # built with GCC 4.8 or with pedantic
47 ;;
48 *)
49 make test
50 ;;
51 esac
52
53 check_unignored_build_artifacts
54
55 save_good_tree