Skip to content

Commit

Permalink
CI: run go test with -short and without -v
Browse files Browse the repository at this point in the history
We have so many tests that Travis seems to have issues displaying all of
the output with the RUN and PASS lines. It often gets truncated, which
isn't useful at all. The output is also too verbose anyway.

Also use -short since the version of bash on Travis is too old. A
previous version of Bash did not recognise [[ -R foo ]] properly, so it
was erroring:

	parser_test.go:106: Unexpected error in `bash -n` of "[[ -R a ]]": bash: line 1: conditional binary operator expected
		bash: line 1: syntax error near `a'
		bash: line 1: `[[ -R a ]]'

Simply disable the bash confirmation runs (the only non-short test) on
Travis for now. In the future, we should disable those tests if the bash
version is too old. For now, this is good enough.
  • Loading branch information
mvdan committed Oct 26, 2016
1 parent ef851ec commit 8242346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ language: go

go:
- 1.7

script: go test -short ./...

0 comments on commit 8242346

Please sign in to comment.