mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-26 21:51:02 +03:00
parent
f802bb236a
commit
a9718f44cd
9 changed files with 21 additions and 13 deletions
|
@ -15,6 +15,7 @@ package htesting
|
|||
|
||||
import (
|
||||
"math/rand"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -86,3 +87,7 @@ func DiffStringSlices(slice1 []string, slice2 []string) []string {
|
|||
func DiffStrings(s1, s2 string) []string {
|
||||
return DiffStringSlices(strings.Fields(s1), strings.Fields(s2))
|
||||
}
|
||||
|
||||
func IsCI() bool {
|
||||
return (os.Getenv("CI") != "" || os.Getenv("CI_LOCAL") != "") && os.Getenv("CIRCLE_BRANCH") == ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue