mirror of https://github.com/restic/restic.git
travis: report coverage to coveralls.io
This commit is contained in:
parent
8131bc60b7
commit
42467a056e
|
@ -19,6 +19,7 @@ notifications:
|
|||
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 ./...
|
||||
|
@ -30,5 +31,8 @@ script:
|
|||
- 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)"
|
||||
|
|
Loading…
Reference in New Issue