diff --git a/.travis.yml b/.travis.yml index e1793c187..e5c93ce4e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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)"