From fad243680900eb672f5f714a4253bba2c52c898a Mon Sep 17 00:00:00 2001 From: Anton Marin Date: Sun, 22 Sep 2019 13:10:21 +0300 Subject: [PATCH] coverage report using coveralls.io --- .travis.yml | 2 ++ README.md | 1 + 2 files changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 60b2cae..e2d1d33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,10 +17,12 @@ jobs: - task --version before_script: - cc-test-reporter before-build + - go get github.com/mattn/goveralls script: - task test after_script: - cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT --debug + - goveralls -coverprofile=c.out -service=travis-ci -repotoken $COVERALLS_TOKEN - stage: release os: osx before_deploy: diff --git a/README.md b/README.md index b4ed0c0..7027a06 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Maintainability](https://api.codeclimate.com/v1/badges/e047b9311147b1e8b419/maintainability)](https://codeclimate.com/github/antonmarin/secret-yaml/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/e047b9311147b1e8b419/test_coverage)](https://codeclimate.com/github/antonmarin/secret-yaml/test_coverage) +[![Coverage Status](https://coveralls.io/repos/github/antonmarin/secret-yaml/badge.svg?branch=master)](https://coveralls.io/github/antonmarin/secret-yaml?branch=master) [![Build Status](https://travis-ci.org/antonmarin/secret-yaml.svg?branch=master)](https://travis-ci.org/antonmarin/secret-yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/antonmarin/secret-yaml)](https://goreportcard.com/report/github.com/antonmarin/secret-yaml) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fantonmarin%2Fsecret-yaml.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fantonmarin%2Fsecret-yaml?ref=badge_shield)