1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +00:00

Add cross-compilation with gox to travis-CI

This commit is contained in:
Alexander Neumann 2015-04-26 12:23:00 +02:00
parent e0fbd83a2d
commit 94ecdc6e84

View file

@ -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