Skip to content

Commit 310d3a1

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge pull request #3349 from vdye/feature/ci-subtree-tests
Add `contrib/subtree` test execution to CI builds
2 parents f746502 + df80813 commit 310d3a1

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

ci/run-build-and-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,8 @@ then
5353
fi
5454
check_unignored_build_artifacts
5555

56+
case " $MAKE_TARGETS " in
57+
*" all "*) make -C contrib/subtree test;;
58+
esac
59+
5660
save_good_tree

ci/run-test-slice.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ group "Run tests" make --quiet -C t T="$(cd t &&
1515
tr '\n' ' ')" ||
1616
handle_failed_tests
1717

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

contrib/subtree/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ $(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
9494
cp $< $@
9595

9696
test: $(GIT_SUBTREE_TEST)
97-
$(MAKE) -C t/ test
97+
$(MAKE) -C t/ all
9898

9999
clean:
100100
$(RM) $(GIT_SUBTREE)

0 commit comments

Comments
 (0)