From 043424824c0616a30209518461e9fcd3b95f388f Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 16 Aug 2016 21:02:30 +0200 Subject: [PATCH] Only test cross-compilation on Go 1.7 --- run_integration_tests.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index 3f98c64cd..528d91917 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -168,7 +168,7 @@ func (env *TravisEnvironment) Prepare() error { } } - if *runCrossCompile { + if *runCrossCompile && !(runtime.Version() < "go1.7") { // only test cross compilation on linux with Travis if err := run("go", "get", "github.com/mitchellh/gox"); err != nil { return err @@ -317,7 +317,7 @@ func (env *TravisEnvironment) RunTests() error { env.env["GOPATH"] = cwd + ":" + filepath.Join(cwd, "vendor") - if *runCrossCompile { + if *runCrossCompile && !(runtime.Version() < "go1.7") { // compile for all target architectures with tags for _, tags := range []string{"release", "debug"} { runWithEnv(env.env, "gox", "-verbose",