From 7044a9a24d6935aeb764532842fb6a43d59c17f8 Mon Sep 17 00:00:00 2001 From: IngCr3at1on Date: Sat, 3 Nov 2018 15:34:50 -0500 Subject: [PATCH] see if this works --- .travis.yml | 3 +-- internal/scripts/travis-install.sh | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 internal/scripts/travis-install.sh 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