Skip to content

Commit 9ee812c

Browse files
vdyeGit for Windows Build Agent
authored andcommitted
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 fb571c9 commit 9ee812c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ci/run-build-and-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,8 @@ esac
5151
make $MAKE_TARGETS
5252
check_unignored_build_artifacts
5353

54+
case " $MAKE_TARGETS " in
55+
*" all "*) make -C contrib/subtree test;;
56+
esac
57+
5458
save_good_tree

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)