Skip to content

Commit

Permalink
Add test coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaseu authored and hzalaz committed Aug 8, 2016
1 parent 1f81e29 commit 702b2b9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
precision: 2
round: down
range: 70...100
status:
patch:
default:
if_no_uploads: error
changes: true
project:
default:
target: auto
if_no_uploads: error
comment: false
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ install:
- ./gradlew --version # show version and download Gradle Wrapper when is not present in cache
- ./gradlew clean # clean project and download Android dependencies when are not present in cache
script:
- ./gradlew test --continue
- ./gradlew test jacocoTestReport --continue
after_success:
- bash <(curl -s https://codecov.io/bash)
branches:
only:
- master
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
1 change: 1 addition & 0 deletions guardian/sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'jacoco-android'

android {
compileSdkVersion 23
Expand Down

0 comments on commit 702b2b9

Please sign in to comment.