[travis]integrate with codecov.io

pull/3324/head
haodi 4 years ago committed by Leo Chen
parent 88cd135919
commit 054d280463
  1. 1
      .travis.yml
  2. 1
      README.md
  3. 2
      scripts/travis_checker.sh

@ -21,6 +21,7 @@ install:
script:
- ${TEST}
after_success:
- bash <(curl -s https://codecov.io/bash)
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL

@ -5,6 +5,7 @@
![Discord](https://img.shields.io/discord/532383335348043777.svg)
[![Coverage Status](https://coveralls.io/repos/github/harmony-one/harmony/badge.svg?branch=main)](https://coveralls.io/github/harmony-one/harmony?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/harmony-one/harmony)](https://goreportcard.com/report/github.com/harmony-one/harmony)
[![codecov](https://codecov.io/gh/harmony-one/harmony/branch/main/graph/badge.svg)](https://codecov.io/gh/harmony-one/harmony)
## General Documentation

@ -80,6 +80,8 @@ else
fi
echo "Running go test..."
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
if go test -v -count=1 ./...
then
echo "go test succeeded."

Loading…
Cancel
Save