Skip some tests on CircleCI
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 3 Mar 2020 14:45:13 +0000 (15:45 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 3 Mar 2020 14:45:13 +0000 (15:45 +0100)
hugolib/testhelpers_test.go

index 137dbd7014ddea01f55e08960fffabb250689257..8ecff189a4603429304ce669252d321286d896fb 100644 (file)
@@ -1021,7 +1021,7 @@ func printStringIndexes(s string) {
 }
 
 func isCI() bool {
-       return os.Getenv("CI") != ""
+       return os.Getenv("CI") != "" && os.Getenv("CIRCLE_BRANCH") == ""
 }
 
 // See https://github.com/golang/go/issues/19280