From d24b86ad856b01f0f09b75787c2812065cb620af Mon Sep 17 00:00:00 2001 From: Tomas Kral Date: Fri, 17 Mar 2017 14:36:24 +0100 Subject: [PATCH] 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. --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 25431d4a4..90d4ceef6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,11 @@ dist : trusty sudo: required - language: go # make this also work for forks go_import_path: github.com/kubernetes-incubator/kompose - go: - 1.6 - 1.7 @@ -21,12 +19,13 @@ before_install: - go get github.com/sgotti/glide-vc - go get github.com/golang/lint/golint - install: - true script: - make test + +after_success: # gover collects all .coverprofile files and saves it to one file gover.coverprofile - gover - goveralls -coverprofile=gover.coverprofile -service=travis-ci