From 6cd5f8b7f5263f5dea0a4ae15f7e4419e6ab9603 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 26 Aug 2018 10:02:13 +0200 Subject: [PATCH] Set GOXPROXY=off for tests, run with -mod=vendor --- run_integration_tests.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index e2d8f4260..2ce2869ac 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -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.