aboutsummaryrefslogtreecommitdiff
path: root/gradle/build.gradle
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2012-12-20 17:46:16 -0800
committerXavier Ducrohet <xav@android.com>2012-12-21 16:18:36 -0800
commit22c43d4c07e37923954fe5d8c8fbe7794b326d9f (patch)
tree17cb7fe7cea9e858b088c6fb8bc82db759809269 /gradle/build.gradle
parent2983358e6d84e943688b47fe87698e6a42aed8f8 (diff)
downloadbuild-22c43d4c07e37923954fe5d8c8fbe7794b326d9f.tar.gz
Add task on gradle plugin to run android tests on a device.
This is not final as the on-device errors are not properly processed. When it's final it'll get added to the check task. This also fixes some issue with installing/uninstalling due to the incremental changes that went in today. Change-Id: I280a1b8c4cfd4daae99fd68e4c93e52f9b3a9c0e
Diffstat (limited to 'gradle/build.gradle')
-rw-r--r--gradle/build.gradle8
1 files changed, 5 insertions, 3 deletions
diff --git a/gradle/build.gradle b/gradle/build.gradle
index f5d48c1..bc56450 100644
--- a/gradle/build.gradle
+++ b/gradle/build.gradle
@@ -72,16 +72,18 @@ task buildTest(type: Test, dependsOn: publishLocal) {
systemProperties['jar.path'] = jar.archivePath
}
-task deviceTest(type: Test, dependsOn: publishLocal) {
+task deviceTest(dependsOn: publishLocal) {
testClassesDir = sourceSets.deviceTest.output.classesDir
classpath = sourceSets.deviceTest.runtimeClasspath
description = "Runs the device tests. This requires a device."
group = "verification"
- systemProperties['jar.path'] = jar.archivePath
+ //systemProperties['jar.path'] = jar.archivePath
}
deviceTest.dependsOn buildTest
-check.dependsOn buildTest, deviceTest
+check.dependsOn buildTest
+// uncomment when device tests are ready.
+//check.dependsOn deviceTest
project.ext.sonatypeUsername = project.hasProperty('sonatypeUsername') ? sonatypeUsername : ""