pull all the install into a single location

This commit is contained in:
Edward Muller 2019-10-13 16:56:28 -07:00
parent 75440f2ebe
commit ad9f41a0cd
No known key found for this signature in database
GPG Key ID: FC5833DB021899A5
2 changed files with 9 additions and 7 deletions

View File

@ -9,13 +9,6 @@ go: [1.11.x, 1.12.x, 1.13.x]
os: [linux, osx]
install:
- ./travis/install.sh
- if [[ "$GO111MODULE" == "on" ]]; then go mod download; fi
- if [[ "$GO111MODULE" == "off" ]]; then go get \
github.com/stretchr/testify/assert \
golang.org/x/sys/unix \
github.com/konsorten/go-windows-terminal-sequences \
github.com/hashicorp/go-version \
github.com/hashicorp/go-version; fi
script:
- ./travis/cross_build.sh
- export GOMAXPROCS=4

View File

@ -9,3 +9,12 @@ if [[ "$TRAVIS_GO_VERSION" =~ ^1\.12\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]];
go build ./
popd
fi
if [[ "$GO111MODULE" == "on" ]]; then
go mod download
fi
if [[ "$GO111MODULE" == "off" ]]; then
go get github.com/stretchr/testify/assert golang.org/x/sys/unix github.com/konsorten/go-windows-terminal-sequences
go get github.com/hashicorp/go-version github.com/hashicorp/go-version
fi