From 939fae940dc409b72078d70e7714d6ef942d3d6b Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 28 Jun 2015 22:16:41 +0200 Subject: [PATCH] travis: Don't compile for ARM with Go1.3 --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0eb90bbe2..9a6297251 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ os: - linux - osx -env: GOX_OS="linux darwin openbsd freebsd" +env: GOX_OS="linux darwin openbsd freebsd" GOX_ARCH="386 amd64 arm" notifications: irc: @@ -26,11 +26,13 @@ install: - go env - go get github.com/mattn/goveralls - go get github.com/mitchellh/gox - - gox -build-toolchain -os "$GOX_OS" + - go version | grep -q "go1\.3" && export GOX_ARCH="386 amd64" || true + - echo "cross-compile for \"$GOX_OS\" on \"$GOX_ARCH\"" + - gox -build-toolchain -os "$GOX_OS" -arch "$GOX_ARCH" script: - - gox -verbose -os "${GOX_OS}" -tags "release" ./cmd/restic - - gox -verbose -os "${GOX_OS}" -tags "debug" ./cmd/restic + - gox -verbose -os "$GOX_OS" -arch "$GOX_ARCH" -tags "release" ./cmd/restic + - gox -verbose -os "$GOX_OS" -arch "$GOX_ARCH" -tags "debug" ./cmd/restic - go run build.go - go run run_tests.go all.cov - GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./...