From 80dfc71e6c5a166c1b75225d27b511e3715afecc Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 18 Sep 2019 01:52:10 +0200 Subject: [PATCH] Enable Go modules for TravisCI --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index f40035c..6c7b6b9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,22 +5,25 @@ os: - osx go: - - 1.9.x - - 1.10.x - 1.11.x - 1.12.x + - 1.13.x - tip matrix: allow_failures: - go: tip +env: + global: + GO111MODULE=on + before_install: - - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi + - if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then go get github.com/axw/gocov/gocov github.com/mattn/goveralls; fi script: - go test -v -tags ci ./... - - if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then $GOPATH/bin/goveralls -service=travis-ci -ignore="examples/colorpalette/main.go,examples/simple/main.go"; fi + - if [[ $TRAVIS_GO_VERSION == 1.13* ]]; then $GOPATH/bin/goveralls -service=travis-ci -ignore="examples/colorpalette/main.go,examples/simple/main.go"; fi notifications: email: