Skip to content

Commit

Permalink
Merge pull request #35 from tri-adam/code_coverage
Browse files Browse the repository at this point in the history
Report Code Coverage Metrics
  • Loading branch information
tri-adam authored Apr 25, 2019
2 parents 1da1955 + 5ce5620 commit 3cbcb48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
version: 2
version: 2.1

orbs:
codecov: codecov/codecov@1.0.4

defaults: &defaults
working_directory: /src
docker:
- image: golang:1.12

jobs:
build:
<<: *defaults
steps:
- checkout
- run:
name: Build Source
command: ./build.sh
- run:
name: Install golangci-lint
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
- run:
name: Check for Lint
command: golangci-lint run ./...
- run:
name: Run Tests
command: go test -cover -race -timeout 60s ./...

lint_markdown:
<<: *defaults
docker:
Expand Down Expand Up @@ -77,7 +63,7 @@ jobs:
command: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
- run:
name: Check for Lint
command: golangci-lint run ./...
command: golangci-lint run

unit_test:
<<: *defaults
Expand All @@ -88,7 +74,9 @@ jobs:
- go-mod-{{ checksum "go.sum" }}
- run:
name: Run Tests
command: go test -cover -race -timeout 60s ./...
command: go test -coverprofile cover.out -race ./...
- codecov/upload:
file: cover.out

workflows:
version: 2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![GoDoc](https://godoc.org/github.com/sylabs/sif?status.svg)](https://godoc.org/github.com/sylabs/sif)
[![Build Status](https://circleci.com/gh/sylabs/sif.svg?style=shield)](https://circleci.com/gh/sylabs/workflows/sif)
[![Code Coverage](https://codecov.io/gh/sylabs/sif/branch/master/graph/badge.svg)](https://codecov.io/gh/sylabs/sif)
[![Go Report Card](https://goreportcard.com/badge/github.com/sylabs/sif)](https://goreportcard.com/report/github.com/sylabs/sif)

SIF is an open source implementation of the Singularity Container Image Format
Expand Down

0 comments on commit 3cbcb48

Please sign in to comment.