mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 06:35:48 +03:00
Modify gradle to get env vars to be passed to android tests directly
This commit is contained in:
parent
822a62c513
commit
014547fca3
1 changed files with 4 additions and 7 deletions
11
build.gradle
11
build.gradle
|
@ -18,9 +18,6 @@ apply plugin: 'com.android.application'
|
|||
|
||||
ext {
|
||||
supportLibraryVersion = '23.1.1'
|
||||
TEST_USER = "$System.env.TEST_USER"
|
||||
TEST_PASSWORD = "$System.env.TEST_PASSWORD"
|
||||
TEST_SERVER_URL = "$System.env.TEST_SERVER_URL"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -73,10 +70,10 @@ android {
|
|||
defaultConfig {
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
|
||||
testInstrumentationRunnerArgument "TEST_USER", "\"${TEST_USER}\""
|
||||
testInstrumentationRunnerArgument "TEST_PASSWORD", "\"${TEST_PASSWORD}\""
|
||||
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"${TEST_SERVER_URL}\""
|
||||
|
||||
// arguments to be passed to functional tests
|
||||
testInstrumentationRunnerArgument "TEST_USER", "\"$System.env.TEST_USER\""
|
||||
testInstrumentationRunnerArgument "TEST_PASSWORD", "\"$System.env.TEST_PASSWORD\""
|
||||
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"$System.env.TEST_SERVER_URL\""
|
||||
}
|
||||
|
||||
// adapt structure from Eclipse to Gradle/Android Studio expectations;
|
||||
|
|
Loading…
Reference in a new issue