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