make test should fail fast on test compilation errors (#3172)

This commit is contained in:
preetapan 2017-06-21 16:47:08 -05:00 committed by James Phillips
parent d2251018d9
commit e0759ecafc
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ cov:
open /tmp/coverage.html
test: dev
go test -tags "$(GOTAGS)" -i -run '^$$' ./...
go test -tags "$(GOTAGS)" -i ./...
go test -tags "$(GOTAGS)" -run '^$$' ./... > /dev/null
go test -tags "$(GOTAGS)" -v $$(go list ./... | egrep -v '(agent/consul|vendor)') > test.log 2>&1 || echo 'FAIL_TOKEN' >> test.log
go test -tags "$(GOTAGS)" -v $$(go list ./... | egrep '(agent/consul)') >> test.log 2>&1 || echo 'FAIL_TOKEN' >> test.log
@if [ "$$TRAVIS" == "true" ] ; then cat test.log ; fi