2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-10 15:21:03 +00:00
restic/.travis.yml

39 lines
918 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-21 15:15:15 +00:00
- gox -verbose -os "${GOX_OS}" -tags "release" ./cmd/restic
2015-06-24 18:00:01 +00:00
- gox -verbose -os "${GOX_OS}" -tags "debug" ./cmd/restic.debug
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
- gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)"