From 4f33b57327df87f7cc8dc502d86f3c1bd0fdd863 Mon Sep 17 00:00:00 2001 From: Abhishek Chanda Date: Sat, 6 Feb 2016 00:35:55 -0800 Subject: [PATCH] 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. --- .travis.yml | 2 +- testutil/wait.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee85997c8..3bd56f296 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ go: - tip env: - - TRAVIS_RUN=true DOCKER_VERSION=1.9.1 + - DOCKER_VERSION=1.9.1 matrix: allow_failures: diff --git a/testutil/wait.go b/testutil/wait.go index 43ad02aca..23c88c497 100644 --- a/testutil/wait.go +++ b/testutil/wait.go @@ -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)