1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 16:26:11 +00:00

Set GOXPROXY=off for tests, run with -mod=vendor

This commit is contained in:
Alexander Neumann 2018-08-26 10:02:13 +02:00
parent 10c0b8080e
commit 6cd5f8b7f5

View file

@ -230,6 +230,7 @@ func (env *TravisEnvironment) RunTests() error {
}
env.env["RESTIC_TEST_DISALLOW_SKIP"] = strings.Join(ensureTests, ",")
env.env["GOPROXY"] = "off"
if *runCrossCompile {
// 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.
func (env *AppveyorEnvironment) Prepare() error {
msg("preparing environment for Appveyor CI\n")
return nil
}
// RunTests start the tests.
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.