mirror of https://github.com/restic/restic.git
Only test cross-compilation on Go 1.7
This commit is contained in:
parent
c88c48a29f
commit
043424824c
|
@ -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
|
// only test cross compilation on linux with Travis
|
||||||
if err := run("go", "get", "github.com/mitchellh/gox"); err != nil {
|
if err := run("go", "get", "github.com/mitchellh/gox"); err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -317,7 +317,7 @@ func (env *TravisEnvironment) RunTests() error {
|
||||||
|
|
||||||
env.env["GOPATH"] = cwd + ":" + filepath.Join(cwd, "vendor")
|
env.env["GOPATH"] = cwd + ":" + filepath.Join(cwd, "vendor")
|
||||||
|
|
||||||
if *runCrossCompile {
|
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",
|
runWithEnv(env.env, "gox", "-verbose",
|
||||||
|
|
Loading…
Reference in New Issue