Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7 from pantheon-systems/add-coveralls
Browse files Browse the repository at this point in the history
add coveralls
  • Loading branch information
spheromak committed Feb 9, 2016
2 parents ccf92e9 + 2206caf commit ddd03b6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,6 +7,7 @@ baryon
baryon.exe
baryon-*
env
coverage.out

vendor/**
!vendor/manifest
11 changes: 11 additions & 0 deletions Makefile
Expand Up @@ -12,6 +12,17 @@ deps: gvt_install
test:
go test

cov:
go get github.com/pierrre/gotestcover
go get github.com/mattn/goveralls
gotestcover -coverprofile=coverage.out $$(go list ./... | grep -v /vendor/)

coveralls: cov
goveralls -repotoken $$COVERALLS_TOKEN -service=circleci -coverprofile=coverage.out

cov_html: cov
go tool cover -html=coverage.out

build:
go build

Expand Down
1 change: 1 addition & 0 deletions README.md
@@ -1,4 +1,5 @@
[![Circle CI](https://circleci.com/gh/pantheon-systems/baryon/tree/master.svg?style=svg&circle-token=92ed13ff052f213b007977e8ef356831b9c63e0d)](https://circleci.com/gh/pantheon-systems/baryon/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/pantheon-systems/baryon/badge.svg?branch=master)](https://coveralls.io/github/pantheon-systems/baryon?branch=master)

Baryon
-----
Expand Down
5 changes: 5 additions & 0 deletions circle.yml
Expand Up @@ -21,6 +21,11 @@ dependencies:
pre:
- make circle_deps

test:
post:
## set COVERALLS_TOKEN environment variable on circleci.com
- make coveralls

general:
artifacts:
- baryon
Expand Down

0 comments on commit ddd03b6

Please sign in to comment.