diff --git a/.travis.yml b/.travis.yml index 95694de..f206da0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,7 @@ matrix: # Install all dependencies (including dependencies of tests) without installing # binaries. install: - - -# - go get -d -t -v ./... + - ./internal/scripts/travis-install.sh # Check if gofmt or go vet report any errors, run all tests with the race # detector enabled, then build all examples to make sure they still compile. diff --git a/internal/scripts/travis-install.sh b/internal/scripts/travis-install.sh new file mode 100755 index 0000000..45862f4 --- /dev/null +++ b/internal/scripts/travis-install.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Disable install for module builds. +if [ "$GO111MODULE" != on ]; then + go get -d -t -v ./... +fi