forked from TrueCloudLab/restic
Don't run Solaris build for go1.9
This commit is contained in:
parent
53040a2e34
commit
d6fd94e49d
2 changed files with 7 additions and 2 deletions
|
@ -5,7 +5,7 @@ matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
go: "1.9.x"
|
go: "1.9.x"
|
||||||
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0
|
env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 RESTIC_BUILD_SOLARIS=0
|
||||||
|
|
||||||
# only run fuse and cloud backends tests on Travis for the latest Go on Linux
|
# only run fuse and cloud backends tests on Travis for the latest Go on Linux
|
||||||
- os: linux
|
- os: linux
|
||||||
|
|
|
@ -135,7 +135,12 @@ func (env *TravisEnvironment) Prepare() error {
|
||||||
"freebsd/386", "freebsd/amd64",
|
"freebsd/386", "freebsd/amd64",
|
||||||
"openbsd/386", "openbsd/amd64",
|
"openbsd/386", "openbsd/amd64",
|
||||||
"linux/arm", "freebsd/arm",
|
"linux/arm", "freebsd/arm",
|
||||||
"solaris/amd64",
|
}
|
||||||
|
|
||||||
|
if os.Getenv("RESTIC_BUILD_SOLARIS") == "0" {
|
||||||
|
msg("Skipping Solaris build\n")
|
||||||
|
} else {
|
||||||
|
env.goxOSArch = append(env.goxOSArch, "solaris/amd64")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
env.goxOSArch = []string{runtime.GOOS + "/" + runtime.GOARCH}
|
env.goxOSArch = []string{runtime.GOOS + "/" + runtime.GOARCH}
|
||||||
|
|
Loading…
Reference in a new issue