2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

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() {