Skip to content

Commit c8ff1e7

Browse files
committed
feat: Set up CC coverage
1 parent 8314bf1 commit c8ff1e7

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.travis.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
language: go
22
go:
3-
- 1.7
3+
- 1.9
4+
- "1.10"
45
- tip
56
sudo: false
7+
before_script:
8+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9+
- chmod +x ./cc-test-reporter
10+
- ./cc-test-reporter before-build
611
script:
712
- export PATH=$PATH:$HOME/gopath/bin
813
- make ci
14+
after_script:
15+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ ci: deps vet lint test
2222

2323
test:
2424
@echo "[Test] running tests"
25-
@go test -v -cover
25+
@go test -v ./... -cover -coverprofile=c.out
2626

2727
.PHONY: default golint test

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
[![Build Status](https://travis-ci.org/mtchavez/countmin.svg?branch=f-ci-updates)](https://travis-ci.org/mtchavez/countmin)
55
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mtchavez/countmin)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/mtchavez/countmin)](https://goreportcard.com/report/github.com/mtchavez/countmin)
7-
[![Go Cover](http://gocover.io/_badge/github.com/mtchavez/countmin)](http://gocover.io/github.com/mtchavez/countmin)
7+
[![Maintainability](https://api.codeclimate.com/v1/badges/9915ffa2990295885e85/maintainability)](https://codeclimate.com/github/mtchavez/countmin/maintainability)
8+
[![Test Coverage](https://api.codeclimate.com/v1/badges/9915ffa2990295885e85/test_coverage)](https://codeclimate.com/github/mtchavez/countmin/test_coverage)
89

910
CountMin sketching algorithm.
1011

0 commit comments

Comments
 (0)