]>
Commit | Line | Data |
---|---|---|
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 |
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 | |
b2cbaa09 | 12 | |
cebead1e CMAB |
13 | if test "$jobname" = "pedantic" |
14 | then | |
15 | export DEVOPTS=pedantic | |
16 | fi | |
17 | ||
eaa62291 | 18 | make |
fb9d7431 SG |
19 | case "$jobname" in |
20 | linux-gcc) | |
334afbc7 | 21 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main |
fb9d7431 | 22 | make test |
f6a5576d | 23 | export GIT_TEST_SPLIT_INDEX=yes |
f3b964a0 | 24 | export GIT_TEST_MERGE_ALGORITHM=recursive |
f6a5576d NTND |
25 | export GIT_TEST_FULL_IN_PACK_ARRAY=true |
26 | export GIT_TEST_OE_SIZE=10 | |
9ac3f0e5 | 27 | export GIT_TEST_OE_DELTA_SIZE=5 |
97164c9f | 28 | export GIT_TEST_COMMIT_GRAPH=1 |
d5b873c8 | 29 | export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1 |
97164c9f | 30 | export GIT_TEST_MULTI_PACK_INDEX=1 |
ff1e653c | 31 | export GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP=1 |
b2627cc3 | 32 | export GIT_TEST_ADD_I_USE_BUILTIN=1 |
334afbc7 | 33 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master |
e8c58f89 | 34 | export GIT_TEST_WRITE_REV_INDEX=1 |
87094fc2 | 35 | export GIT_TEST_CHECKOUT_WORKERS=2 |
bbf24adb | 36 | make test |
fb9d7431 | 37 | ;; |
8a06d56c | 38 | linux-clang) |
39 | export GIT_TEST_DEFAULT_HASH=sha1 | |
40 | make test | |
41 | export GIT_TEST_DEFAULT_HASH=sha256 | |
42 | make test | |
43 | ;; | |
cebead1e | 44 | linux-gcc-4.8|pedantic) |
fb9d7431 | 45 | # Don't run the tests; we only care about whether Git can be |
cebead1e | 46 | # built with GCC 4.8 or with pedantic |
fb9d7431 SG |
47 | ;; |
48 | *) | |
49 | make test | |
50 | ;; | |
51 | esac | |
9cc2c76f | 52 | |
b92cb86e SG |
53 | check_unignored_build_artifacts |
54 | ||
9cc2c76f | 55 | save_good_tree |