Use the CI env variable

Travis exports this variable to all builds. We don't need out own.
A number of other CI systems use this variable too.
This commit is contained in:
Abhishek Chanda
2016-02-06 00:35:55 -08:00
parent 652da981ea
commit 4f33b57327
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ go:
- tip
env:
- TRAVIS_RUN=true DOCKER_VERSION=1.9.1
- DOCKER_VERSION=1.9.1
matrix:
allow_failures:

View File

@@ -11,7 +11,7 @@ import (
const (
// TravisRunEnv is an environment variable that is set if being run by
// Travis.
TravisRunEnv = "TRAVIS_RUN"
TravisRunEnv = "CI"
)
type testFn func() (bool, error)