Skip to content
Myr

ci: break when test fail (#1671)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by thinkerou · committed by Bo-Yi Wu · parent 98c7ac7 · Browse files · 2 files+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+8 added−1 removed

  • other:+8 added−1 removed

2 files+8 added−1 removed

modified:.gitignore+2 added
1 unmodified line
2!vendor/vendor.json3coverage.out4count.out5test6profile.out7tmp.out
modified:Makefile+6 added-1 removed
12 unmodified lines
13.PHONY: test14test:15 echo "mode: count" > coverage.out16 for d in $(TESTFOLDER); do \17 $(GO) test -v -covermode=count -coverprofile=profile.out $$d; \17 $(GO) test -v -covermode=count -coverprofile=profile.out $$d > tmp.out; \18 cat tmp.out; \19 if grep -q "^--- FAIL" tmp.out; then \20 rm tmp.out; \21 exit 1;\22 fi; \23 if [ -f profile.out ]; then \24 cat profile.out | grep -v "mode:" >> coverage.out; \25 rm profile.out; \26 fi; \
55 unmodified lines