Skip to content

Commit

Permalink
Add JaCoCo workaround for teamcity
Browse files Browse the repository at this point in the history
  • Loading branch information
vgaidarji committed Nov 25, 2016
1 parent cf334d9 commit cc8c1ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/config/jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ task jacocoTestReport(type:JacocoReport, dependsOn: "testDebugUnitTest") {
'**/CiMattersApplication*.*',
'android/**/*.*']
)
if (project.hasProperty("teamcity")) {
println '##teamcity[jacocoReport dataPath=\'app/build/jacoco/testDebugUnitTest.exec\' includes=\'com.vgaidarji.cimatters.*\' excludes=\'com.vgaidarji.cimatters.test.* **/*R*.* **/*Injector*.* **/*Activity*.* .*R .*CiMattersApplication .*BuildConfig .*Activity .*Test \']'
}
reports {
xml.enabled = true
html.enabled = true
Expand Down

0 comments on commit cc8c1ab

Please sign in to comment.