File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ run-tests: tools
4646 mkdir -p $(COVERDIR )
4747 rm -f $(COVERDIR ) /*
4848 for pkg in $( GO_PKGS) ; do \
49- go test -v -covermode count -coverprofile=$(COVERDIR ) /$$(echo $$pkg | tr '/' '-' ) .out $$ pkg ; \
49+ go test -v -covermode count -coverprofile=$(COVERDIR ) /$$(echo $$pkg | tr '/' '-' ) .out $$ pkg || exit 1 ; \
5050 done
5151
5252test : run-tests
@@ -65,7 +65,7 @@ docker-build:
6565 -v $(shell pwd) :/real_src \
6666 -e SHELL_UID=$(shell id -u) -e SHELL_GID=$(shell id -g) \
6767 -w /go/src/github.com/wrouesnel/postgres_exporter \
68- golang:1.8 -wheezy \
68+ golang:1.9 -wheezy \
6969 /bin/bash -c " make >&2 && chown $$ SHELL_UID:$$ SHELL_GID ./postgres_exporter"
7070 docker build -t $(CONTAINER_NAME ) .
7171
Original file line number Diff line number Diff line change 1010echo " mode: count" > $output_cov
1111
1212test_cov=$( mktemp)
13- $test_binary -test.coverprofile=$test_cov $@
13+ $test_binary -test.coverprofile=$test_cov $@ || exit 1
1414tail -n +2 $test_cov >> $output_cov
1515rm -f $test_cov
You can’t perform that action at this time.
0 commit comments