mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
*: remove checks for TRAVIS env variable (#3568)
We had a few checks left over for the TRAVIS variable that detected if we were running under the TravisCI build system. This variable hasn't been set since 2020.
This commit is contained in:
committed by
GitHub
parent
938cb6e9d8
commit
a8ee87e473
@ -130,7 +130,7 @@ This option can only be specified if testset is basic or a single package.`)
|
||||
|
||||
func checkCert() bool {
|
||||
// If we're on OSX make sure the proper CERT env var is set.
|
||||
if os.Getenv("TRAVIS") == "true" || runtime.GOOS != "darwin" || os.Getenv("CERT") != "" {
|
||||
if runtime.GOOS != "darwin" || os.Getenv("CERT") != "" {
|
||||
return true
|
||||
}
|
||||
|
||||
@ -328,9 +328,6 @@ func testFlags() []string {
|
||||
}
|
||||
if NOTimeout {
|
||||
testFlags = append(testFlags, "-timeout", "0")
|
||||
} else if os.Getenv("TRAVIS") == "true" {
|
||||
// Make test timeout shorter than Travis' own timeout so that Go can report which test hangs.
|
||||
testFlags = append(testFlags, "-timeout", "9m")
|
||||
}
|
||||
if len(os.Getenv("TEAMCITY_VERSION")) > 0 {
|
||||
testFlags = append(testFlags, "-json")
|
||||
@ -344,20 +341,6 @@ func testFlags() []string {
|
||||
func testCmd(cmd *cobra.Command, args []string) {
|
||||
checkCertCmd(nil, nil)
|
||||
|
||||
if os.Getenv("TRAVIS") == "true" && runtime.GOOS == "darwin" {
|
||||
fmt.Println("Building with native backend")
|
||||
execute("go", "build", "-tags=macnative", buildFlags(), DelveMainPackagePath)
|
||||
|
||||
fmt.Println("\nBuilding without native backend")
|
||||
execute("go", "build", buildFlags(), DelveMainPackagePath)
|
||||
|
||||
fmt.Println("\nTesting")
|
||||
os.Setenv("PROCTEST", "lldb")
|
||||
env := []string{}
|
||||
executeq(env, "sudo", "-E", "go", "test", testFlags(), allPackages())
|
||||
return
|
||||
}
|
||||
|
||||
if TestSet == "" && TestBackend == "" && TestBuildMode == "" {
|
||||
if TestRegex != "" {
|
||||
fmt.Printf("Can not use --test-run without --test-set\n")
|
||||
|
||||
Reference in New Issue
Block a user