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