2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00
restic/.travis.yml

38 lines
810 B
YAML
Raw Normal View History

2015-03-14 14:38:59 +00:00
language: go
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-13 11:21:00 +00:00
env: GOX_OS="linux darwin openbsd freebsd"
2015-05-10 20:43:42 +00:00
2015-03-14 14:37:12 +00:00
notifications:
irc:
channels:
- "chat.freenode.net#restic"
on_success: change
on_failure: change
skip_join: true
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
- go get github.com/mattn/goveralls
- go get github.com/mitchellh/gox
- gox -build-toolchain -os "$GOX_OS"
script:
2015-06-13 11:21:00 +00:00
- gox -verbose -os "${GOX_OS}" ./cmd/restic
- go run run_tests.go all.cov
- GOARCH=386 go test ./...
2015-06-11 20:45:22 +00:00
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
- gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)"