Skip to content

Commit

Permalink
add go 1.12 to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Feb 26, 2019
1 parent 3ee2f9a commit da24bba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ language: go
go:
- 1.10.x
- 1.11.x
- 1.12.x

script:
- go get -d -t ./...
- go vet ./...
- go test ./...
- >
go_version=$(go version);
if [ ${go_version:13:4} = "1.11" ]; then
if [ ${go_version:13:4} = "1.12" ]; then
go get -u golang.org/x/tools/cmd/goimports;
goimports -d -e ./ | grep '.*' && { echo; echo "Aborting due to non-empty goimports output."; exit 1; } || :;
fi
Expand Down

0 comments on commit da24bba

Please sign in to comment.