mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Run coverage, but push to coverall only after_success
This will ensure that we get the matrix run green before pushing results to coveralls, but also that if for some reason coveralls has a problem, this is not making our build status red. Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -35,6 +35,8 @@ script:
|
||||
- if [[ ! $TRAVIS_TAG ]]; then go test -v -run=TestNoRace --failfast -p=1 -timeout 20m ./...; fi
|
||||
- if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.15 ]]; then ./scripts/cov.sh TRAVIS; else go test -v -race -p=1 --failfast -timeout 20m ./...; fi; fi
|
||||
- set +e
|
||||
after_success:
|
||||
- if [[ ! $TRAVIS_TAG ]]; then if [[ "$TRAVIS_GO_VERSION" =~ 1.15 ]]; then $HOME/gopath/bin/goveralls -coverprofile=acc.out -service travis-ci; fi; fi
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
|
||||
Reference in New Issue
Block a user