apply plugin: 'com.android.application' apply plugin: 'com.github.kt3k.coveralls' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "com.codemate.booklibrary" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { debug { testCoverageEnabled true } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile 'org.mockito:mockito-core:2.5.5' androidTestCompile 'com.linkedin.dexmaker:dexmaker-mockito:2.2.0' androidTestCompile ('com.android.support.test.espresso:espresso-core:2.2.1') { exclude module: 'support-annotations' } testCompile 'junit:junit:4.12' testCompile 'info.cukes:cucumber-java:1.2.4' testCompile 'info.cukes:cucumber-junit:1.2.4' testCompile 'org.mockito:mockito-core:2.5.5' compile 'com.android.support:appcompat-v7:25.0.1' compile 'com.android.support:recyclerview-v7:25.0.1' } coveralls { jacocoReportPath = "${buildDir}/reports/coverage/debug/report.xml" } tasks.coveralls { dependsOn 'createDebugCoverageReport' onlyIf { System.env.'CI' } }