Skip to content

Commit 94f1a53

Browse files
vdyeGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
ci: run contrib/subtree tests in CI builds
Because `git subtree` (unlike most other `contrib` modules) is included as part of the standard release of Git for Windows, its stability should be verified as consistently as it is for the rest of git. By including the `git subtree` tests in the CI workflow, these tests are as much of a gate to merging and indicator of stability as the standard test suite. Signed-off-by: Victoria Dye <[email protected]>
1 parent 24ab4f5 commit 94f1a53

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ci/run-build-and-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ linux-gcc)
3333
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
3434
export GIT_TEST_WRITE_REV_INDEX=1
3535
export GIT_TEST_CHECKOUT_WORKERS=2
36-
make test
36+
make test && make -C contrib/subtree test || exit 1
3737
;;
3838
linux-clang)
3939
export GIT_TEST_DEFAULT_HASH=sha1
4040
make test
4141
export GIT_TEST_DEFAULT_HASH=sha256
42-
make test
42+
make test && make -C contrib/subtree test || exit 1
4343
;;
4444
linux-gcc-4.8|pedantic)
4545
# Don't run the tests; we only care about whether Git can be
4646
# built with GCC 4.8 or with pedantic
4747
;;
4848
*)
49-
make test
49+
make test && make -C contrib/subtree test || exit 1
5050
;;
5151
esac
5252

ci/run-test-slice.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ make --quiet -C t T="$(cd t &&
1414
./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh |
1515
tr '\n' ' ')"
1616

17+
# Run the git subtree tests only if main tests succeeded
18+
test 0 != "$1" || make -C contrib/subtree test
19+
1720
check_unignored_build_artifacts

0 commit comments

Comments
 (0)