github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/util/testutil/ci/travis/travis_test.go (about) 1 package travis 2 3 import ( 4 "os" 5 "testing" 6 ) 7 8 func TestIsRunning(t *testing.T) { 9 tr := os.Getenv("TRAVIS") == "true" && os.Getenv("CI") == "true" 10 if tr != IsRunning() { 11 t.Error("IsRunning() does not match TRAVIS && CI env var check") 12 } 13 }