mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-13 12:18:00 +08:00
Merge pull request #429 from jbenet/makefile-all-commits
Makefile: add test_all_commits
This commit is contained in:
commit
c51b6db012
6
Makefile
6
Makefile
@ -28,3 +28,9 @@ test_sharness:
|
||||
|
||||
test_sharness_expensive:
|
||||
cd test/ && make TEST_EXPENSIVE=1
|
||||
|
||||
test_all_commits:
|
||||
@echo "testing all commits between origin/master..HEAD"
|
||||
@echo "WARNING: this will 'git rebase --exec'."
|
||||
@test/bin/continueyn
|
||||
GIT_EDITOR=true git rebase -i --exec "make test" origin/master
|
||||
|
||||
10
test/bin/continueyn
Executable file
10
test/bin/continueyn
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Author: Juan Batiz-Benet <juan@benet.ai>
|
||||
# MIT LICENSED
|
||||
|
||||
read -p "continue? [y/N] "
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
exit 0
|
||||
fi
|
||||
exit -1
|
||||
Loading…
Reference in New Issue
Block a user