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

46 lines
1.4 KiB
YAML
Raw Normal View History

2015-03-14 14:38:59 +00:00
language: go
2015-07-02 14:24:57 +00:00
sudo: false
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
env: GOX_OS="linux darwin openbsd freebsd" GOX_ARCH="386 amd64 arm" RESTIC_TEST_FUSE="0"
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
- go version | grep -q "go1\.3" && export GOX_ARCH="386 amd64" || true
2015-07-09 18:50:52 +00:00
- go version | grep -q "darwin" && export GOX_OS="darwin" || true
- uname -s | grep -qi darwin && brew install caskroom/cask/brew-cask || true
- uname -s | grep -qi darwin && brew cask install osxfuse || true
- echo "cross-compile for \"$GOX_OS\" on \"$GOX_ARCH\""
- gox -build-toolchain -os "$GOX_OS" -arch "$GOX_ARCH"
script:
- 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
- gofmt -l *.go */*.go */*/*.go
- test -z "$(gofmt -l *.go */*.go */*/*.go)"