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.
This commit is contained in:
irfan sharif 2016-11-03 01:28:25 -04:00
parent 380f64d344
commit 140886f9dc
No known key found for this signature in database
GPG Key ID: C4D1388BE0D8209B
1 changed files with 4 additions and 2 deletions

View File

@ -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/)