-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
executable file
·150 lines (136 loc) · 3.93 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
group 'android.com.tronlink-UI-test'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
repositories {
maven { url "https://cloud.experitest.com/repo" }
maven { url "https://repo.maven.apache.org/maven2" }
maven { url 'http://clojars.org/repo' }
mavenCentral()
}
dependencies {
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.44'
compile group: 'org.testng', name: 'testng', version: '6.9.9'
compile group: 'io.appium', name: 'java-client', version: '7.2.0'
compile group: 'com.google.zxing', name: 'core', version: '3.1.0'
// https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket
compile group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.4.0'
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.11.1'
compile files('libs/wallet-1.0-SNAPSHOT.jar')
compile group: 'com.madgag.spongycastle', name: 'core', version: '1.54.0.0'
compile group: 'com.madgag.spongycastle', name: 'prov', version: '1.58.0.0'
compile group: 'com.typesafe', name: 'config', version: '1.3.2'
}
test {
useTestNG(){
suites 'testng.xml'
}
}
task tronlink(type: Test,dependsOn: 'autoCreateTestngXml') {
useTestNG {
suites(file('src/test/resources/tronlink-testng.xml'))
parallel 'tests'
threadCount 10
}
}
task androidP0(type: Test,dependsOn: 'autoCreateAndroidP0Xml') {
useTestNG {
suites(file('src/test/resources/android-p0.xml'))
parallel 'tests'
threadCount 10
}
}
task autoCreateAndroidP0Xml(type: Test) {
useTestNG {
suites(file('src/test/resources/autoCreateAndroidP0Xml.xml'))
parallel 'tests'
threadCount 1
}
}
task tronlinkt(type: Test) {
useTestNG {
suites(file('src/test/resources/tronlink-testng.xml'))
parallel 'tests'
threadCount 10
}
}
task iosP0(type: Test,dependsOn: 'autoCreateiOSP0Xml') {
useTestNG {
suites(file('src/test/resources/ios-p0.xml'))
parallel 'tests'
threadCount 10
}
}
task ios(type: Test,dependsOn: 'autoCreateIosTestngXml') {
useTestNG {
suites(file('src/test/resources/tronlink-ios.xml'))
parallel 'tests'
threadCount 10
}
}
//
task iost(type: Test) {
useTestNG {
suites(file('src/test/resources/tronlink-ios.xml'))
parallel 'tests'
threadCount 10
}
}
task autoCreateiOSP0Xml(type: Test) {
useTestNG {
suites(file('src/test/resources/autoCreateiOSP0Xml.xml'))
parallel 'tests'
threadCount 1
}
}
task hundredios(type: Test,dependsOn: 'createNumbersWalletsTestngXml') {
useTestNG {
suites(file('src/test/resources/tronlink-ios.xml'))
parallel 'tests'
threadCount 10
}
}
task createNumbersWalletsTestngXml(type: Test) {
useTestNG {
suites(file('src/test/resources/createNumbersWalletsTestngXml.xml'))
parallel 'tests'
threadCount 1
}
}
task autoCreateTestngXml(type: Test) {
useTestNG {
suites(file('src/test/resources/autoCreateTestngXml.xml'))
parallel 'tests'
threadCount 1
}
}
task autoCreateIosTestngXml(type: Test) {
useTestNG {
suites(file('src/test/resources/autoCreateIosTestngXml.xml'))
parallel 'tests'
threadCount 1
}
}
task activityServer(type: Test) {
useTestNG {
suites(file('src/test/resources/tronlink-activity-server.xml'))
parallel 'tests'
threadCount 1
}
}
task releaseTronlink(type: Test,dependsOn: 'autoCreateTestngXmlForRelease') {
useTestNG {
suites(file('src/test/resources/tronlink-testng.xml'))
parallel 'tests'
threadCount 10
}
}
task autoCreateTestngXmlForRelease(type: Test) {
useTestNG {
suites(file('src/test/resources/autoCreateTestngForReleaseXml.xml'))
parallel 'tests'
threadCount 1
}
}