From a10f28ae006806c037e16e41b871a95b2fd47893 Mon Sep 17 00:00:00 2001 From: IngCr3at1on Date: Sat, 3 Nov 2018 15:34:50 -0500 Subject: [PATCH] fixing travis and tags (I think this is all of it...) --- .travis.yml | 7 +++---- internal/scripts/travis-install.sh | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 internal/scripts/travis-install.sh diff --git a/.travis.yml b/.travis.yml index 95694de..b67c5f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ language: go # Specify Go versions to test (".x" suffix means latest minor version, "tip" is # the latest development version) go: - # - "1.9.x" - # - "1.10.x" + - "1.9.x" + - "1.10.x" - "1.11.x" - tip @@ -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