Skip to content

Commit

Permalink
Print the full log on travis.
Browse files Browse the repository at this point in the history
Use EXTRA_TEST_ARGS in the Makefile to pass in --logtostderr when
running on travis.
  • Loading branch information
jaqx0r committed May 26, 2016
1 parent 7252e33 commit 29a5858
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install:
- travis_retry make install_coverage_deps

# Run all tests, under race detector.
script: make testrace
script: make testrace EXTRA_TEST_ARGS=--logtostderr

# If the full suite passes, run again to collect coverage, merge all of the
# packages reports, and send to coveralls.io.
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ emgen/emgen: emgen/emgen.go

.PHONY: test
test: $(GOFILES) $(GOTESTFILES) mtail
go test -v -timeout 60s ./...
go test -v -timeout 60s ./... $(EXTRA_TEST_ARGS)

.PHONY: testrace
testrace: $(GOFILES) $(GOTESTFILES) mtail
go test -v -timeout 5m -race ./...
go test -v -timeout 5m -race ./... $(EXTRA_TEST_ARGS)

.PHONY: smoke
smoke: $(GOFILES) $(GOTESTFILES) mtail
go test -v -timeout 10s -test.short ./...
go test -v -timeout 10s -test.short ./... $(EXTRA_TEST_ARGS)

.PHONY: bench
bench: $(GOFILES) $(GOTESTFILES)
go test -bench=. -timeout 60s -run=XXX ./...
go test -bench=. -timeout 60s -run=XXX ./... $(EXTRA_TEST_ARGS)

.PHONY: recbench
recbench: $(GOFILES) $(GOTESTFILES)
go test -bench=. -run=XXX --record_benchmark ./...
go test -bench=. -run=XXX --record_benchmark ./... $(EXTRA_TEST_ARGS)

.PHONY: coverage
coverage: gover.coverprofile
Expand Down

0 comments on commit 29a5858

Please sign in to comment.