mirror of https://github.com/restic/restic.git
Add cross-compilation with gox to travis-CI
This commit is contained in:
parent
e0fbd83a2d
commit
94ecdc6e84
|
@ -12,11 +12,14 @@ notifications:
|
||||||
irc: "chat.freenode.net#restic"
|
irc: "chat.freenode.net#restic"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- go get github.com/mitchellh/gox
|
||||||
|
- gox -build-toolchain -os "linux darwin"
|
||||||
- go get -v -t ./...
|
- go get -v -t ./...
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go build -ldflags "-s" ./...
|
- go build -ldflags "-s" ./...
|
||||||
- go build -ldflags "-s" -o restic ./cmd/restic
|
- go build -ldflags "-s" -o restic ./cmd/restic
|
||||||
|
- sh -c "cd cmd/restic && gox -verbose -os 'linux darwin'"
|
||||||
- "stat --printf='binary size: %s' restic"
|
- "stat --printf='binary size: %s' restic"
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
- ./testsuite.sh
|
- ./testsuite.sh
|
||||||
|
|
Loading…
Reference in New Issue