Niedzielski has uploaded a new change for review. https://gerrit.wikimedia.org/r/227393
Change subject: Restrict testAll* tasks to debug only ...................................................................... Restrict testAll* tasks to debug only There is no connectedAndroidTest*Release. Hence, there should be no testAll*Release tasks. Bad dependencies caused certain tasks to fail to execute, namely the tasks task. Change-Id: I1dd6e0b01012e28a87967ba7d215114cb83d0099 --- M config/quality.gradle 1 file changed, 10 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia refs/changes/93/227393/1 diff --git a/config/quality.gradle b/config/quality.gradle index f61de9b..e8a96f9 100644 --- a/config/quality.gradle +++ b/config/quality.gradle @@ -31,16 +31,20 @@ testAllTask.shouldRunAfter jvmJUnitName } -// Add testAll tasks for each build variant. +// Add testAll tasks for each debug build variant. Note: there is no +// connectedAndroidTest*Release. android.applicationVariants.all { variant -> def variantName = variant.name.capitalize() - def testAllName = "testAll${variantName}" - def jvmJUnitName = "test${variantName}" - def androidInstrumentationName = "connectedAndroidTest${variantName}" - addTestAllTask(testAllName, jvmJUnitName, androidInstrumentationName) + if (variantName.endsWith('Debug')) { + def testAllName = "testAll${variantName}" + def jvmJUnitName = "test${variantName}" + def androidInstrumentationName = "connectedAndroidTest${variantName}" + + addTestAllTask(testAllName, jvmJUnitName, androidInstrumentationName) + } } // Add testAll task for all configurations. addTestAllTask('testAll', 'test', 'connectedAndroidTest') -// --- /testAll --- \ No newline at end of file +// --- /testAll --- -- To view, visit https://gerrit.wikimedia.org/r/227393 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1dd6e0b01012e28a87967ba7d215114cb83d0099 Gerrit-PatchSet: 1 Gerrit-Project: apps/android/wikipedia Gerrit-Branch: master Gerrit-Owner: Niedzielski <sniedziel...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits