From d4b799d8e02b0f16637bedccc88fce72c252e415 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 28 Mar 2018 15:10:09 -0500 Subject: [PATCH] Add codecov badge --- .travis.yml | 5 ++++- README.md | 2 +- app/build.gradle | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c611f8ab8..34c3ba807 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,4 +30,7 @@ before_install: script: - ./gradlew :app:lintGoogleplayDebug - - ./gradlew :app:connectedGoogleplayDebugAndroidTest + - ./gradlew :app:createGoogleplayDebugAndroidTestCoverageReport + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 536ee14a9..db0b40dc7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/tasks/tasks.svg?branch=master)](https://travis-ci.org/tasks/tasks) +[![Build Status](https://travis-ci.org/tasks/tasks.svg?branch=master)](https://travis-ci.org/tasks/tasks) [![codecov](https://codecov.io/gh/tasks/tasks/branch/master/graph/badge.svg)](https://codecov.io/gh/tasks/tasks) [![Donate with Bitcoin](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://en.cryptobadges.io/donate/136mW34jW3cmZKhxuTDn3tHXMRwbbaRU8s) [![PayPal donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=alex@tasks.org) diff --git a/app/build.gradle b/app/build.gradle index 60ed6922b..1ab96d010 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -44,6 +44,7 @@ android { buildTypes { debug { multiDexEnabled true + testCoverageEnabled true } release { minifyEnabled true