diff --git a/.circleci/config.yml b/.circleci/config.yml index d4b8004..4ecc8cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,9 +28,14 @@ jobs: name: Calculate test coverage command: | mkdir -p $TEST_RESULTS - go test -coverprofile=c.out ./... > /dev/null - go tool cover -html=c.out -o coverage.html + go test -coverprofile=coverage.out ./... > /dev/null + go test -race -coverprofile=coverage.txt -covermode=atomic ./... > /dev/null + go tool cover -html=coverage.out -o coverage.html mv coverage.html $TEST_RESULTS + - run: + name: Upload test coverage + command: | + bash <(curl -s https://codecov.io/bash) - run: name: Lint (golint) command: | @@ -67,4 +72,4 @@ workflows: matrix: parameters: # To test with and without generics (versions prior to 1.18) - version: ["1.18", "1.17"] \ No newline at end of file + version: [ "1.18", "1.17" ] \ No newline at end of file diff --git a/README.md b/README.md index 920847b..ebc0b54 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,8 @@ -[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) [![Build Status](https://circleci.com/gh/emirpasic/gods/tree/master.svg?style=shield)](https://circleci.com/gh/emirpasic/gods?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/emirpasic/gods)](https://goreportcard.com/report/github.com/emirpasic/gods) [![PyPI](https://img.shields.io/badge/License-BSD_2--Clause-green.svg)](https://github.com/emirpasic/gods/blob/master/LICENSE) +[![GoDoc](https://godoc.org/github.com/emirpasic/gods?status.svg)](https://godoc.org/github.com/emirpasic/gods) +[![Build Status](https://circleci.com/gh/emirpasic/gods/tree/master.svg?style=shield)](https://circleci.com/gh/emirpasic/gods?branch=master) +[![Go Report Card](https://goreportcard.com/badge/github.com/emirpasic/gods)](https://goreportcard.com/report/github.com/emirpasic/gods) +[![codecov](https://codecov.io/gh/emirpasic/gods/branch/master/graph/badge.svg)](https://codecov.io/gh/emirpasic/gods) +[![PyPI](https://img.shields.io/badge/License-BSD_2--Clause-green.svg)](https://github.com/emirpasic/gods/blob/master/LICENSE) # GoDS (Go Data Structures)