Skip to content

Commit

Permalink
Add coverage report from coveralls.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Robinson committed May 9, 2019
1 parent 3a28ee8 commit 1ceea99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ jobs:
- image: circleci/golang:latest
working_directory: /go/src/github.com/c-robinson/iplib

environment:
TEST_RESULTS: /tmp/test-results

steps:
- checkout
- run: mkdir -p $TEST_RESULTS
- run: go get github.com/mattn/goveralls
- run:
name: Run unit tests
command: |
go test -v ./...
go test -v -cover -race -coverprofile=${TEST_RESULTS}/coverage.out ./...
- run:
name: Upload coverage results
command: |
goveralls -coverprofile=${TEST_RESULTS}/coverage.out -service=circle-ci -repotoken=$COVERALLS_TOKEN
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ addresses. Tools include:
[![Documentation](https://godoc.org/github.com/c-robinson/iplib?status.svg)](http://godoc.org/github.com/c-robinson/iplib)
[![CircleCI](https://circleci.com/gh/c-robinson/iplib/tree/master.svg?style=svg)](https://circleci.com/gh/c-robinson/iplib/tree/master)
[![Go Report Card](https://goreportcard.com/badge/github.com/c-robinson/iplib)](https://goreportcard.com/report/github.com/c-robinson/iplib)
[![Coverage Status](https://coveralls.io/repos/github/c-robinson/iplib/badge.svg?branch=master)](https://coveralls.io/github/c-robinson/iplib?branch=master)

##### net.IP tools

Expand Down

0 comments on commit 1ceea99

Please sign in to comment.