Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hamid-rocket
committed
Mar 23, 2018
1 parent
7a42134
commit e3a76e9
Showing
5 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: android | ||
jdk: oraclejdk8 | ||
env: | ||
global: | ||
- ANDROID_TARGET=android-16 | ||
- ANDROID_ABI=armeabi-v7a | ||
- BUILD_TOOLS_VERSION=27.0.3 | ||
- ANDROID_TARGET=27 | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-${BUILD_TOOLS_VERSION} | ||
- android-${ANDROID_TARGET} | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
- sys-img-${ANDROID_ABI}-${ANDROID_TARGET} | ||
script: | ||
- ./gradlew build jacocoTestReport | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apply plugin: 'jacoco' | ||
|
||
jacoco { | ||
toolVersion = '0.8.0' | ||
} | ||
|
||
tasks.withType(Test) { | ||
jacoco.includeNoLocationClasses = true | ||
} | ||
|
||
task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest', 'createDebugCoverageReport']) { | ||
|
||
reports { | ||
xml.enabled = true | ||
html.enabled = true | ||
} | ||
|
||
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*'] | ||
def debugTree = fileTree(dir: "$project.buildDir/intermediates/artifact_transform/compileDebugJavaWithJavac/classes", excludes: fileFilter) | ||
def mainSrc = "$project.projectDir/src/main/java" | ||
|
||
sourceDirectories = files([mainSrc]) | ||
classDirectories = files([debugTree]) | ||
executionData = fileTree(dir: project.buildDir, includes: [ | ||
'jacoco/testDebugUnitTest.exec', 'outputs/code-coverage/connected/*coverage.ec' | ||
]) | ||
} |