From 94ecdc6e84829bd5a1ca26d7cc945d2b4db355d3 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 26 Apr 2015 12:23:00 +0200 Subject: [PATCH] Add cross-compilation with gox to travis-CI --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index ac06116c9..fb5ea2651 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +12,14 @@ notifications: irc: "chat.freenode.net#restic" install: + - go get github.com/mitchellh/gox + - gox -build-toolchain -os "linux darwin" - go get -v -t ./... script: - go build -ldflags "-s" ./... - go build -ldflags "-s" -o restic ./cmd/restic + - sh -c "cd cmd/restic && gox -verbose -os 'linux darwin'" - "stat --printf='binary size: %s' restic" - go test -v ./... - ./testsuite.sh