Skip to content

Commit ae0f662

Browse files
committed
Merge pull request #3349 from vdye/feature/ci-subtree-tests
Add `contrib/subtree` test execution to CI builds
2 parents 8aa979e + 543ed4c commit ae0f662

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
@@ -49,6 +49,10 @@ pedantic)
4949
esac
5050

5151
group Build make
52+
case " $MAKE_TARGETS " in
53+
*" all "*) group "Build git-subtree" \
54+
make -C contrib/subtree $(test -n "$run_tests" && echo test || echo all);;
55+
esac
5256
if test -n "$run_tests"
5357
then
5458
group "Run tests" make test ||

ci/run-test-slice.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ if [ "$1" == "0" ] ; then
2020
group "Run unit tests" make --quiet -C t unit-tests-test-tool
2121
fi
2222

23+
# Run the git subtree tests only if main tests succeeded
24+
test 0 != "$1" || make -C contrib/subtree test
25+
2326
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)