From b2dbe95e30107760ed2ccf5bba420fb34e8b9f7d Mon Sep 17 00:00:00 2001 From: Emir Pasic Date: Wed, 13 Apr 2022 13:06:26 +0200 Subject: [PATCH 1/4] codeconv integration --- .circleci/config.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d4b8004..969f51d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,7 @@ version: 2.1 +orbs: + codecov: codecov/codecov@3.2.2 jobs: test: parameters: @@ -28,9 +30,10 @@ 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 tool cover -html=coverage.out -o coverage.html mv coverage.html $TEST_RESULTS + - codecov/upload - run: name: Lint (golint) command: | From 5bcba54b52dc5fb1c27e030d5e5b88d0f6f11a59 Mon Sep 17 00:00:00 2001 From: Emir Pasic Date: Wed, 13 Apr 2022 13:23:25 +0200 Subject: [PATCH 2/4] codeconv integration --- .circleci/config.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 969f51d..04d3bee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,5 @@ version: 2.1 -orbs: - codecov: codecov/codecov@3.2.2 jobs: test: parameters: @@ -31,9 +29,13 @@ jobs: command: | mkdir -p $TEST_RESULTS go test -coverprofile=coverage.out ./... > /dev/null + go test -race -coverprofile=coverage.txt -covermode=atomic go tool cover -html=coverage.out -o coverage.html mv coverage.html $TEST_RESULTS - - codecov/upload + - run: + name: Upload test coverage + command: | + bash <(curl -s https://codecov.io/bash) - run: name: Lint (golint) command: | @@ -70,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 From 138c2712daf34da2b84741d71bd4269c7fce8dca Mon Sep 17 00:00:00 2001 From: Emir Pasic Date: Wed, 13 Apr 2022 13:24:23 +0200 Subject: [PATCH 3/4] codeconv integration --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 04d3bee..4ecc8cc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ jobs: command: | mkdir -p $TEST_RESULTS go test -coverprofile=coverage.out ./... > /dev/null - go test -race -coverprofile=coverage.txt -covermode=atomic + 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: From 0d3ddc1d7403a2ab4a20db2f35ec5a048f5da6f1 Mon Sep 17 00:00:00 2001 From: Emir Pasic Date: Wed, 13 Apr 2022 13:30:10 +0200 Subject: [PATCH 4/4] codeconv integration --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)