mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
language: go
|
|
sudo: false
|
|
|
|
go:
|
|
- 1.3.3
|
|
- 1.4.2
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
env: GOX_OS="linux darwin openbsd freebsd" GOX_ARCH="386 amd64 arm"
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "chat.freenode.net#restic"
|
|
on_success: change
|
|
on_failure: change
|
|
skip_join: true
|
|
|
|
install:
|
|
- 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
|
|
- 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
|
|
- go run build.go
|
|
- go run run_tests.go all.cov
|
|
- GOARCH=386 RESTIC_TEST_INTEGRATION=0 go test ./...
|
|
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN" || true
|
|
- gofmt -l *.go */*.go */*/*.go
|
|
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
|