forked from TrueCloudLab/restic
Set GOXPROXY=off for tests, run with -mod=vendor
This commit is contained in:
parent
10c0b8080e
commit
6cd5f8b7f5
1 changed files with 5 additions and 2 deletions
|
@ -230,6 +230,7 @@ func (env *TravisEnvironment) RunTests() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
env.env["RESTIC_TEST_DISALLOW_SKIP"] = strings.Join(ensureTests, ",")
|
env.env["RESTIC_TEST_DISALLOW_SKIP"] = strings.Join(ensureTests, ",")
|
||||||
|
env.env["GOPROXY"] = "off"
|
||||||
|
|
||||||
if *runCrossCompile {
|
if *runCrossCompile {
|
||||||
// compile for all target architectures with tags
|
// compile for all target architectures with tags
|
||||||
|
@ -301,13 +302,15 @@ type AppveyorEnvironment struct{}
|
||||||
|
|
||||||
// Prepare installs dependencies and starts services in order to run the tests.
|
// Prepare installs dependencies and starts services in order to run the tests.
|
||||||
func (env *AppveyorEnvironment) Prepare() error {
|
func (env *AppveyorEnvironment) Prepare() error {
|
||||||
msg("preparing environment for Appveyor CI\n")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// RunTests start the tests.
|
// RunTests start the tests.
|
||||||
func (env *AppveyorEnvironment) RunTests() error {
|
func (env *AppveyorEnvironment) RunTests() error {
|
||||||
return run("go", "run", "build.go", "-v", "-T")
|
e := map[string]string{
|
||||||
|
"GOPROXY": "off",
|
||||||
|
}
|
||||||
|
return runWithEnv(e, "go", "run", "-mod=vendor", "build.go", "-v", "-T")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Teardown is a noop.
|
// Teardown is a noop.
|
||||||
|
|
Loading…
Add table
Reference in a new issue