CI: only run gox -build-toolchain for Go < 1.5

This commit is contained in:
Alexander Neumann 2015-08-20 19:42:40 +02:00
parent 94eebbaa88
commit 9f7346354b

View file

@ -47,9 +47,12 @@ func (env *TravisEnvironment) Prepare() {
}
msg("gox: OS %v, ARCH %v\n", env.goxOS, env.goxArch)
run("gox", "-build-toolchain",
"-os", strings.Join(env.goxOS, " "),
"-arch", strings.Join(env.goxArch, " "))
if !strings.HasPrefix(runtime.Version(), "go1.5") {
run("gox", "-build-toolchain",
"-os", strings.Join(env.goxOS, " "),
"-arch", strings.Join(env.goxArch, " "))
}
}
func (env *TravisEnvironment) RunTests() {