send report to coveralls in after_success section

Connection to coveralls.io sometimes fails and its marking tests as fail
even then are OK. Exit code from after_success do not affects build
result.
This commit is contained in:
Tomas Kral 2017-03-17 14:36:24 +01:00
parent 752b203089
commit d24b86ad85
No known key found for this signature in database
GPG Key ID: E690DA7E4F291FA6

View File

@ -2,13 +2,11 @@
dist : trusty dist : trusty
sudo: required sudo: required
language: go language: go
# make this also work for forks # make this also work for forks
go_import_path: github.com/kubernetes-incubator/kompose go_import_path: github.com/kubernetes-incubator/kompose
go: go:
- 1.6 - 1.6
- 1.7 - 1.7
@ -21,12 +19,13 @@ before_install:
- go get github.com/sgotti/glide-vc - go get github.com/sgotti/glide-vc
- go get github.com/golang/lint/golint - go get github.com/golang/lint/golint
install: install:
- true - true
script: script:
- make test - make test
after_success:
# gover collects all .coverprofile files and saves it to one file gover.coverprofile # gover collects all .coverprofile files and saves it to one file gover.coverprofile
- gover - gover
- goveralls -coverprofile=gover.coverprofile -service=travis-ci - goveralls -coverprofile=gover.coverprofile -service=travis-ci