1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-06 00:02:48 +02:00

Better codecov based on ouchadam's suggestion

This commit is contained in:
Michael Kaye
2022-03-03 10:40:11 +00:00
parent 105f3dd93d
commit 49fbfe6811
3 changed files with 108 additions and 0 deletions

View File

@@ -105,6 +105,16 @@ task clean(type: Delete) {
delete rootProject.buildDir
}
def launchTask = getGradle()
.getStartParameter()
.getTaskRequests()
.toString()
.toLowerCase()
if (launchTask.contains("codeCoverageReport".toLowerCase())) {
apply from: 'coverage.gradle'
}
apply plugin: 'org.sonarqube'
// To run a sonar analysis: