mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-10 20:06:33 +00:00
[wip] make testground
should work when working tree is clean
This commit is contained in:
parent
0fc197d992
commit
a90239dd01
6
Makefile
6
Makefile
@ -134,9 +134,9 @@ TESTGROUND_TESTCASE ?= hello
|
||||
|
||||
testground:
|
||||
mkdir -p scratch && rm -rf scratch/* && git clone --depth=1 "file://$${PWD}" "scratch/$$(basename $${PWD})"
|
||||
git diff --merge-base HEAD > "scratch/$$(basename $${PWD})/scratch.patch"
|
||||
cd "scratch/$$(basename $${PWD})" && git apply scratch.patch
|
||||
rm "scratch/$$(basename $${PWD})/scratch.patch"
|
||||
[[ $$(git status --porcelain) == "" ]] || (git diff --merge-base HEAD > "scratch/$$(basename $${PWD})/scratch.patch")
|
||||
[[ $$(git status --porcelain) == "" ]] || (cd "scratch/$$(basename $${PWD})" && git apply scratch.patch)
|
||||
rm -f "scratch/$$(basename $${PWD})/scratch.patch"
|
||||
git clean -ndfx | grep -v $(SCRATCH_IGNORE) | awk '{ print $$3 }' | xargs -I{} bash -c "test -d '{}' && echo '{}' || true" | xargs -I{} mkdir -p scratch/nim-codex/{}
|
||||
git clean -ndfx | grep -v $(SCRATCH_IGNORE) | awk '{ print $$3 }' | xargs -I{} cp -R {} scratch/nim-codex/{}
|
||||
testground plan import --from=testground/$(TESTGROUND_PLAN)
|
||||
|
Loading…
x
Reference in New Issue
Block a user