mirror of
https://github.com/restic/restic.git
synced 2024-12-25 01:06:39 +00:00
37 lines
999 B
YAML
37 lines
999 B
YAML
language: go
|
|
|
|
go:
|
|
- 1.3.3
|
|
- 1.4.2
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "chat.freenode.net#restic"
|
|
on_success: change
|
|
on_failure: change
|
|
|
|
env: GOX_OS="linux darwin openbsd freebsd"
|
|
|
|
install:
|
|
- go get github.com/mattn/goveralls
|
|
- go get github.com/mitchellh/gox
|
|
- gox -build-toolchain -os "$GOX_OS"
|
|
- go get -v -t ./...
|
|
|
|
script:
|
|
- go build -ldflags "-s" ./...
|
|
- go build -ldflags "-s" -o restic ./cmd/restic
|
|
- sh -c 'cd cmd/restic && gox -verbose -os "$GOX_OS" && ls -al'
|
|
- go test -v ./...
|
|
- ./testsuite.sh
|
|
- sh -c "cd backend && go test -v -test.sftppath /usr/lib/openssh/sftp-server ./..."
|
|
- go list ./... | while read pkg; do go test -covermode=count -coverprofile=$(base64 <<< $pkg).cov $pkg; done
|
|
- 'echo "mode: count" > all.cov; tail -q -n +2 *.cov >> all.cov'
|
|
- goveralls -coverprofile=all.cov -service=travis-ci -repotoken "$COVERALLS_TOKEN"
|
|
- gofmt -l *.go */*.go */*/*.go
|
|
- test -z "$(gofmt -l *.go */*.go */*/*.go)"
|