Skip to content

Commit

Permalink
[CI] Generate JaCoCo coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Jun 27, 2017
1 parent 0a268bf commit bffd4aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ jobs:

- run:
name: Run Tests
command: ./gradlew clean lint test --stacktrace
command: ./gradlew clean lint test jacocoTestReport --stacktrace

- run:
name: Assemble package
command: ./gradlew assembleDebug --stacktrace

- run:
name: Code coverage
command: ./tools/codecov.io.sh || true
command: ( echo "TODO Run ./gradlew connectedCheck on an emulator" & > /dev/null & ./tools/codecov.io.sh ) || true

- run:
name: Update Github Pages branch
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
Expand Down
2 changes: 2 additions & 0 deletions maoni-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'jacoco-android'
apply plugin: 'com.github.triplet.play'

Properties localProperties = new Properties()
Expand Down Expand Up @@ -117,6 +118,7 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
minifyEnabled true
buildConfigField "String", "GITHUB_USERNAME", "\"${ghUsername}\""
buildConfigField "String", "GITHUB_PASSWORD_TOKEN", "\"${ghPasswordToken}\""
Expand Down

0 comments on commit bffd4aa

Please sign in to comment.