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:
parent
94eebbaa88
commit
9f7346354b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user