From 140886f9dcb2b0a8d6dd197666306b92d5decc2f Mon Sep 17 00:00:00 2001 From: irfan sharif Date: Thu, 3 Nov 2016 01:28:25 -0400 Subject: [PATCH] Updated .travis.yml to ignore /examples/ /examples/hook/hook.go with it's child dependency on airbrake/gobrake is not backwards compatible pre-go1.6 due to use of the following: - os.LookupEnv (introduced in go1.5) - http.StatusTooManyRequests (introduced in go1.6) ignoring the fetch and explicit test of /examples/ fixes failing go1.3, go1.4, go1.5 builds. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index dee4eb2..abd0c9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,9 @@ go: - 1.4 - 1.5 - 1.6 + - 1.7 - tip install: - - go get -t ./... -script: GOMAXPROCS=4 GORACE="halt_on_error=1" go test -race -v ./... + - go get -t $(go list ./... | grep -v /examples/) +script: + - GOMAXPROCS=4 GORACE="halt_on_error=1" go test -race -v $(go list ./... | grep -v /examples/)