From 69d8fe5b4f794af4f45e2cbdb2ebcb04f3fcd447 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 21 Aug 2016 14:21:19 +0200 Subject: [PATCH] Add check for cross-compilation --- run_integration_tests.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run_integration_tests.go b/run_integration_tests.go index ace2fc4c6..249839628 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -323,11 +323,14 @@ func (env *TravisEnvironment) RunTests() error { if *runCrossCompile && !(runtime.Version() < "go1.7") { // compile for all target architectures with tags for _, tags := range []string{"release", "debug"} { - runWithEnv(env.env, "gox", "-verbose", + err := runWithEnv(env.env, "gox", "-verbose", "-osarch", strings.Join(env.goxOSArch, " "), "-tags", tags, "-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}", "cmds/restic") + if err != nil { + return err + } } }