-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
executable file
·46 lines (40 loc) · 1.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
def flatDirPath = project.hasProperty('flatDirPath') ? project.getProperty('flatDirPath') : ''
if(flatDirPath != '') {
flatDir {
dirs flatDirPath
}
} else {
maven {
url "https://repo1.perfectomobile.com/public/repositories/maven/"
}
}
}
dependencies {
classpath "com.perfectomobile.instrumentedtest.gradleplugin:plugin:+"
}
}
apply plugin: 'com.perfectomobile.instrumentedtest.gradleplugin'
perfectoGradleSettings {
configFileLocation "configFile.json"
}
tasks.register('cleanPreviousBuild', Exec) {
workingDir projectDir
commandLine "bash", "-c", "rm -fr *.xctestproducts dd"
}
tasks.register('buildForRealDevice') {
dependsOn cleanPreviousBuild
doLast {
exec {
commandLine "bash", "-c", "xcodebuild build-for-testing " +
" -destination generic/platform='iOS' " +
" -configuration Debug" +
" -scheme axe-devtools-ios-sample-app" +
" -target axe-devtools-ios-sample-appUITests" +
" -sdk iphoneos" +
" -derivedDataPath DerivedData/ -quiet -allowProvisioningUpdates"
}
}
}