From 6c70a1c220c1011a5b0d6e612dcb67d6dc36e80a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 May 2020 15:40:13 +0200 Subject: all: replace TRAVIS env var with CI In preparation to running some tests as github actions. Both Travis and Github define CI env var, while TRAVIS is, well, too Travis-specific. Update #1699 --- pkg/csource/csource_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/csource/csource_test.go') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index 32ff9da28..d97833998 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -57,7 +57,7 @@ var executorOpts = Options{ func testTarget(t *testing.T, target *prog.Target, full bool) { seed := time.Now().UnixNano() - if os.Getenv("TRAVIS") != "" { + if os.Getenv( "CI") != "" { seed = 0 // required for deterministic coverage reports } rs := rand.NewSource(seed) @@ -98,7 +98,7 @@ func testOne(t *testing.T, p *prog.Prog, opts Options) { // Frequently lots of tests fail at the same, which produces/tmp/log // tens of thounds of lines of output. Limit amount of output. maxFailures := uint32(10) - if os.Getenv("TRAVIS") != "" { + if os.Getenv( "CI") != "" { maxFailures = 1 } if atomic.LoadUint32(&failedTests) > maxFailures { -- cgit mrf-deployment