Build toolchain for gox only on older Versions of Go

This commit is contained in:
Alexander Neumann 2016-01-16 13:40:16 +01:00
parent f90381910b
commit 7c70d5c1bd

View file

@ -51,7 +51,8 @@ func (env *TravisEnvironment) Prepare() {
msg("gox: OS %v, ARCH %v\n", env.goxOS, env.goxArch) msg("gox: OS %v, ARCH %v\n", env.goxOS, env.goxArch)
if !strings.HasPrefix(runtime.Version(), "go1.5") { v := runtime.Version()
if !strings.HasPrefix(v, "go1.5") && !strings.HasPrefix(v, "go1.6") {
run("gox", "-build-toolchain", run("gox", "-build-toolchain",
"-os", strings.Join(env.goxOS, " "), "-os", strings.Join(env.goxOS, " "),
"-arch", strings.Join(env.goxArch, " ")) "-arch", strings.Join(env.goxArch, " "))