forked from TrueCloudLab/restic
CI: only run gox -build-toolchain for Go < 1.5
This commit is contained in:
parent
94eebbaa88
commit
9f7346354b
1 changed files with 6 additions and 3 deletions
|
@ -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 a new issue