2015-03-14 14:38:59 +00:00
|
|
|
language: go
|
2015-05-06 18:42:11 +00:00
|
|
|
|
2015-03-14 12:19:52 +00:00
|
|
|
go:
|
2015-03-14 14:07:29 +00:00
|
|
|
- 1.3.3
|
|
|
|
- 1.4.2
|
2015-03-14 14:37:12 +00:00
|
|
|
|
2015-04-25 17:31:38 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2015-06-28 20:16:41 +00:00
|
|
|
env: GOX_OS="linux darwin openbsd freebsd" GOX_ARCH="386 amd64 arm"
|
2015-05-10 20:43:42 +00:00
|
|
|
|
2015-03-14 14:37:12 +00:00
|
|
|
notifications:
|
2015-04-26 11:09:40 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#restic"
|
|
|
|
on_success: change
|
|
|
|
on_failure: change
|
2015-05-17 22:02:51 +00:00
|
|
|
skip_join: true
|
2015-03-14 12:19:52 +00:00
|
|
|
|
|
|
|
install:
|
2015-06-13 11:21:00 +00:00
|
|
|
- go version
|
|
|
|
- export GOBIN="$GOPATH/bin"
|
|
|
|
- export PATH="$PATH:$GOBIN"
|
|
|
|
- export GOPATH="$GOPATH:${TRAVIS_BUILD_DIR}/Godeps/_workspace"
|
|
|
|
- go env
|
2015-05-09 09:46:38 +00:00
|
|
|
- go get github.com/mattn/goveralls
|
2015-04-26 10:23:00 +00:00
|
|
|
- go get github.com/mitchellh/gox
|
2015-06-28 20:16:41 +00:00
|
|
|
- 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"
|
2015-03-14 12:19:52 +00:00
|
|
|
|
|
|
|
script:
|
2015-06-28 20:16:41 +00:00
|
|
|
- gox -verbose -os "$GOX_OS" -arch "$GOX_ARCH" -tags "release" ./cmd/restic
|
|
|
|
- gox -verbose -os "$GOX_OS" -arch "$GOX_ARCH" -tags "debug" ./cmd/restic
|
2015-06-24 18:16:31 +00:00
|
|
|
- go run build.go
|
2015-06-13 11:21:00 +00:00
|
|
|
- go run run_tests.go all.cov
|
2015-06-21 15:32:19 +00:00
|
|
|
- GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./...
|
2015-06-11 20:45:22 +00:00
|
|
|
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
|
2015-03-25 15:17:18 +00:00
|
|
|
- gofmt -l *.go */*.go */*/*.go
|
|
|
|
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
|