Skip to content

Commit

Permalink
Merge pull request git-for-windows#3349 from vdye/feature/ci-subtree-…
Browse files Browse the repository at this point in the history
…tests

Add `contrib/subtree` test execution to CI builds
  • Loading branch information
dscho committed Nov 25, 2024
2 parents 90951bc + d537e6c commit c62654f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ci/run-build-and-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ then
fi
check_unignored_build_artifacts

case " $MAKE_TARGETS " in
*" all "*) make -C contrib/subtree test;;
esac

save_good_tree
3 changes: 3 additions & 0 deletions ci/run-test-slice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ if [ "$1" == "0" ] ; then
group "Run unit tests" make --quiet -C t unit-tests-test-tool
fi

# Run the git subtree tests only if main tests succeeded
test 0 != "$1" || make -C contrib/subtree test

check_unignored_build_artifacts
2 changes: 1 addition & 1 deletion contrib/subtree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
cp $< $@

test: $(GIT_SUBTREE_TEST)
$(MAKE) -C t/ test
$(MAKE) -C t/ all

clean:
$(RM) $(GIT_SUBTREE)
Expand Down

0 comments on commit c62654f

Please sign in to comment.