Skip to content

Commit

Permalink
Define build matrix to switch download command
Browse files Browse the repository at this point in the history
  • Loading branch information
nukosuke committed Mar 13, 2019
1 parent dcd5283 commit 166c290
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
language: go

go:
- 1.9
- 1.10.x
- 1.11.x
- 1.12.x
- master
matrix:
include:
- go: 1.9
- go: 1.10.x
- go: 1.11.x
env: GO111MODULE=on
- go: 1.12.x
env: GO111MODULE=on
- go: master
env: GO111MODULE=on

before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- if [ $GO111MODULE != "on" ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh;
fi
- go get github.com/mattn/goveralls # for profiling coverage

install:
- dep ensure
- if [ $GO111MODULE == "on" ]; then
go mod download;
else
dep ensure;
fi

script:
- go test -v ./...
Expand Down

0 comments on commit 166c290

Please sign in to comment.