Skip to content

Commit

Permalink
Now travis build should fail when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed Jun 21, 2016
1 parent 3a11f5e commit 36226fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: go

env:
global:
- DOCKER_VERSION=1.10.1-0~trusty
- DOCKER_VERSION=1.10.3-0~trusty
- DOCKER_COMPOSE_VERSION=1.7.1

go:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ build:
run-containers:
@cd test_containers && docker-compose up -d && cd ..

kill-containers:
@cd test_containers && docker-compose stop && cd ..

coverage:
@echo "mode: count" > coverage-all.out
@$(foreach pkg,$(PACKAGES),\
go test -coverprofile=coverage.out -covermode=count $(pkg);\
go test -coverprofile=coverage.out -covermode=count $(pkg) || exit 1 &&\
tail -n +2 coverage.out >> coverage-all.out;)
run:
@go run main.go start
Expand Down

0 comments on commit 36226fd

Please sign in to comment.