From 4395c2ae1a5d0a027e63285ef85a376a8d4d87bd Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Fri, 5 Oct 2018 07:57:19 -0700 Subject: [PATCH] Code coverage (#79) * Turning on codecoverage from Codecov. --- .travis.yml | 5 ++++- README.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7fb3958..f9daf34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,7 @@ install: - docker-compose up -d script: - - go test -v github.com/paypal/gorealis + - go test -race -coverprofile=coverage.txt -covermode=atomic -v github.com/paypal/gorealis + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 82ddc2f..f2c7eca 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # gorealis [![GoDoc](https://godoc.org/github.com/paypal/gorealis?status.svg)](https://godoc.org/github.com/paypal/gorealis) [![Build Status](https://travis-ci.org/paypal/gorealis.svg?branch=master)](https://travis-ci.org/paypal/gorealis) +[![codecov](https://codecov.io/gh/paypal/gorealis/branch/master/graph/badge.svg)](https://codecov.io/gh/paypal/gorealis) Go library for interacting with [Apache Aurora](https://github.com/apache/aurora).