Skip to content

Commit dfeb706

Browse files
authored
Merge pull request #15 from mikegray/mike.cov
Add code coverage
2 parents c6abccc + bd23a3f commit dfeb706

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2.1
22

3+
orbs:
4+
codecov: codecov/[email protected]
5+
36
defaults: &defaults
47
working_directory: /src
58
docker:
@@ -68,7 +71,9 @@ jobs:
6871
- go-mod-{{ checksum "go.sum" }}
6972
- run:
7073
name: Run Tests
71-
command: go test -cover -race ./...
74+
command: go test -coverprofile cover.out -race ./...
75+
- codecov/upload:
76+
file: cover.out
7277

7378
workflows:
7479
version: 2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![GoDoc](https://godoc.org/github.com/sylabs/scs-build-client?status.svg)](https://godoc.org/github.com/sylabs/scs-build-client)
44
[![Build Status](https://circleci.com/gh/sylabs/scs-build-client.svg?style=shield)](https://circleci.com/gh/sylabs/workflows/scs-build-client)
5+
[![Code Coverage](https://codecov.io/gh/sylabs/scs-build-client/branch/master/graph/badge.svg)](https://codecov.io/gh/sylabs/scs-build-client)
56
[![Go Report Card](https://goreportcard.com/badge/github.com/sylabs/scs-build-client)](https://goreportcard.com/report/github.com/sylabs/scs-build-client)
67

78
This project provides a Go client for the Singularity Container Services (SCS) Build Service.

0 commit comments

Comments
 (0)