2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 21:05:10 +00:00

Add check for cross-compilation

This commit is contained in:
Alexander Neumann 2016-08-21 14:21:19 +02:00
parent 916efa4e1a
commit 69d8fe5b4f

View File

@ -323,11 +323,14 @@ func (env *TravisEnvironment) RunTests() error {
if *runCrossCompile && !(runtime.Version() < "go1.7") { if *runCrossCompile && !(runtime.Version() < "go1.7") {
// compile for all target architectures with tags // compile for all target architectures with tags
for _, tags := range []string{"release", "debug"} { for _, tags := range []string{"release", "debug"} {
runWithEnv(env.env, "gox", "-verbose", err := runWithEnv(env.env, "gox", "-verbose",
"-osarch", strings.Join(env.goxOSArch, " "), "-osarch", strings.Join(env.goxOSArch, " "),
"-tags", tags, "-tags", tags,
"-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}", "-output", "/tmp/{{.Dir}}_{{.OS}}_{{.Arch}}",
"cmds/restic") "cmds/restic")
if err != nil {
return err
}
} }
} }