Merge pull request #176 from restic/use-coveralls
Improve CI with coveralls
This commit is contained in:
commit
985af03738
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,6 @@ language: go
|
|||
go:
|
||||
- 1.3.3
|
||||
- 1.4.2
|
||||
- release
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
@ -19,6 +18,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 +30,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)"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[](https://waffle.io/restic/restic)
|
||||
[](https://travis-ci.org/restic/restic)
|
||||
[](https://sourcegraph.com/github.com/restic/restic)
|
||||
[](https://coveralls.io/r/restic/restic)
|
||||
|
||||
WARNING
|
||||
=======
|
||||
|
|
Loading…
Add table
Reference in a new issue