Lars Schneider | 657343a | 2017-09-10 16:44:28 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
SZEDER Gábor | 3c93b82 | 2018-01-08 18:22:14 +0100 | [diff] [blame] | 3 | # Build and test Git |
Lars Schneider | 657343a | 2017-09-10 16:44:28 +0200 | [diff] [blame] | 4 | # |
| 5 | |
Johannes Schindelin | c2160f2 | 2019-01-27 15:26:50 -0800 | [diff] [blame] | 6 | . ${0%/*}/lib.sh |
Lars Schneider | 657343a | 2017-09-10 16:44:28 +0200 | [diff] [blame] | 7 | |
Johannes Schindelin | 4b060a4 | 2019-01-27 15:26:53 -0800 | [diff] [blame] | 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 |
SZEDER Gábor | b2cbaa0 | 2018-01-29 18:17:11 +0100 | [diff] [blame] | 12 | |
Johannes Schindelin | eaa6229 | 2019-01-27 15:26:52 -0800 | [diff] [blame] | 13 | make |
SZEDER Gábor | fb9d743 | 2019-07-18 17:22:34 +0200 | [diff] [blame] | 14 | case "$jobname" in |
| 15 | linux-gcc) |
| 16 | make test |
Nguyễn Thái Ngọc Duy | f6a5576 | 2018-04-14 17:35:13 +0200 | [diff] [blame] | 17 | export GIT_TEST_SPLIT_INDEX=yes |
| 18 | export GIT_TEST_FULL_IN_PACK_ARRAY=true |
| 19 | export GIT_TEST_OE_SIZE=10 |
Nguyễn Thái Ngọc Duy | 9ac3f0e | 2018-07-22 10:04:21 +0200 | [diff] [blame] | 20 | export GIT_TEST_OE_DELTA_SIZE=5 |
Derrick Stolee | 97164c9 | 2018-10-17 06:00:34 -0700 | [diff] [blame] | 21 | export GIT_TEST_COMMIT_GRAPH=1 |
Garima Singh | d5b873c | 2020-04-06 16:59:55 +0000 | [diff] [blame] | 22 | export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1 |
Derrick Stolee | 97164c9 | 2018-10-17 06:00:34 -0700 | [diff] [blame] | 23 | export GIT_TEST_MULTI_PACK_INDEX=1 |
Johannes Schindelin | b2627cc | 2020-01-14 18:43:53 +0000 | [diff] [blame] | 24 | export GIT_TEST_ADD_I_USE_BUILTIN=1 |
SZEDER Gábor | bbf24ad | 2019-01-17 02:29:11 +0100 | [diff] [blame] | 25 | make test |
SZEDER Gábor | fb9d743 | 2019-07-18 17:22:34 +0200 | [diff] [blame] | 26 | ;; |
| 27 | linux-gcc-4.8) |
| 28 | # Don't run the tests; we only care about whether Git can be |
| 29 | # built with GCC 4.8, as it errors out on some undesired (C99) |
| 30 | # constructs that newer compilers seem to quietly accept. |
| 31 | ;; |
| 32 | *) |
| 33 | make test |
| 34 | ;; |
| 35 | esac |
SZEDER Gábor | 9cc2c76 | 2017-12-31 11:12:05 +0100 | [diff] [blame] | 36 | |
SZEDER Gábor | b92cb86 | 2017-12-31 17:02:06 +0100 | [diff] [blame] | 37 | check_unignored_build_artifacts |
| 38 | |
SZEDER Gábor | 9cc2c76 | 2017-12-31 11:12:05 +0100 | [diff] [blame] | 39 | save_good_tree |