Skip to content

Commit

Permalink
Upgrade to go 1.10.1 in travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
petemoore committed Apr 30, 2018
1 parent 22553f2 commit 90c5ea8
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
language: go
go:
- 1.6
- 1.10.1

env:
- "MY_GOOS=linux MY_GOARCH=amd64"
- "MY_GOOS=darwin MY_GOARCH=amd64"
- "MY_GOOS=windows MY_GOARCH=amd64"
- "GIMME_OS=linux GIMME_ARCH=amd64"
- "GIMME_OS=darwin GIMME_ARCH=amd64"
- "GIMME_OS=windows GIMME_ARCH=amd64"

before_install:
# workaround for travis-ci/gimme#42
- curl -o go.tar.gz -sL https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
- tar -C $HOME -xf go.tar.gz
- rm go.tar.gz
- export GOROOT="${HOME}/go"
- export PATH="${GOROOT}/bin:${PATH}"
- export GOOS="${MY_GOOS}"
- export GOARCH="${MY_GOARCH}"
# end of workaround ###
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
Expand All @@ -27,7 +18,7 @@ install:

script:
- "go install -v ./..."
- "if test $GOOS.$GOARCH = linux.amd64; then ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report ./...; go tool cover -func=coverage.report; fi"
- "if test $GIMME_OS.$GIMME_ARCH = linux.amd64; then ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report ./...; go tool cover -func=coverage.report; fi"

after_script:
- "$HOME/gopath/bin/goveralls -coverprofile=coverage.report -service=travis-ci"
Expand Down

0 comments on commit 90c5ea8

Please sign in to comment.