forked from appium/appium-xcuitest-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
229 lines (215 loc) · 7.07 KB
/
.travis.yml
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
sudo: required
os: osx
osx_image: xcode10.2
language: node_js
node_js: "10"
cache:
npm: false
env:
global:
- PLATFORM_VERSION=12.2
- SHOW_XCODE_LOG=0
- _FORCE_LOGS=1
- RECURSIVE=--recursive
- MAX_PARALLEL=0
- DEBUG=mocha-parallel-tests
- secure: ls4nb5gcu0USHauJOkB9R5p86PMPJd/wCIQWjj/bhAfLNpSNNthtss2Ss9M7BjJg8lth8c85MrGfkAZOGgXknNtlQ2HHwKK4fbEiLAKLDS9diac6/OpAsxxE1/OvletYhkKLQSqb8d5Ju3S/xY6SmNDIzHUpeTYV2/5Ve+7Fh9zc1RztxsPwV1vxPtL6w0IAzNS9PQOmDXQ6x9KuZModtR7ohVKD47A91MzBlu3kk1CSaeQ4I8l7eXi4R9J6F81jkr51Vzoam4B6+4HTepSdfo02irBQWzaJ3VtRCbazFRBc/wfe4YgOPQTD9k69FiP19sa28lP9eSn6h5OCSXA9M803kju33Ml6OItRWDG0gUG1dzTroVXELEIcfnw1iTsFqKWoJLaEzEiXV8n2RsXLaLC5SHPgKwGEigGMfWDxM9leIC8hgervjQvApmx7btzq9S50tMcrzba5qwXDDrjJi1wKSjd4pQajhSj9VgOH9D5ihZBdn++VLwEvfAd4yQhjdsr9+COV1HrgK7Ro1HAHWgGnPtwBKiQdVU20QdQzNrhRdF2MLrJ4BfWpNm92JwlPxP/ojuA2l8mr9nDqlfBgXlnG32j59988gi85vaMfXssrUXtdJqsKJckI01c/mgaRh9pvG3UPX8K39quKBI5ftS8aCCa8tbF6bLq/ZuI2TRU=
jobs:
include:
- stage: tests
name: Unit tests
if: &noncron type != cron
env:
- TEST=unit
- COVERALLS=1
- _FORCE_LOGS=0
- stage:
name: Basic functional tests
if: *noncron
env:
- TEST=functional/basic
- stage:
name: Device functional tests
if: *noncron
env:
- TEST=functional/device
- stage:
name: Driver functional tests
if: *noncron
env:
- TEST=functional/driver
- stage:
name: Web tests
if: *noncron
env:
- TEST=functional/web
- stage:
name: Long tests
if: *noncron
env:
- TEST=functional/long
- stage:
name: Smoke test on Xcode 10.1 web
if: *noncron
osx_image: xcode10.1
env:
- PLATFORM_VERSION=12.1
- TEST=functional/web
- stage: "[CRON] Upload Appium build to Sauce Storage"
if: &cron type = cron
os: linux
env: CLOUD=1
script: npx gulp sauce-storage-upload
# Sauce Emusim tests
- stage: "[CRON] Sauce Emusim tests"
if: *cron
os: linux
name: Basic, device 0
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=0 TEST=functional/basic
- stage:
if: *cron
os: linux
name: Basic, device 1
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=1 TEST=functional/basic
- stage:
if: *cron
os: linux
name: Basic, device 2
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=2 TEST=functional/basic
- stage:
if: *cron
os: linux
name: Basic, device 3
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=3 TEST=functional/basic
- stage:
if: *cron
os: linux
name: Basic, device 4
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=4 TEST=functional/basic
- stage:
if: *cron
os: linux
name: Web, device 0
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=0 TEST=functional/web
addons: &sc
sauce_connect:
no_ssl_bump_domains: localhost
- stage:
if: *cron
os: linux
name: Web, device 1
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=1 TEST=functional/web
addons:
*sc
- stage:
if: *cron
os: linux
name: Web, device 2
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=2 TEST=functional/web
addons:
*sc
- stage:
if: *cron
os: linux
name: Web, device 3
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=3 TEST=functional/web
addons:
*sc
- stage:
if: *cron
os: linux
name: Web, device 4
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=4 TEST=functional/web
addons:
*sc
- stage:
if: *cron
os: linux
name: Long, device 0
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=0 LONG=1 TEST=functional/long
- stage:
if: *cron
os: linux
name: Long, device 1
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=1 LONG=1 TEST=functional/long
- stage:
if: *cron
os: linux
name: Long, device 2
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=2 LONG=1 TEST=functional/long
- stage:
if: *cron
os: linux
name: Long, device 3
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=3 LONG=1 TEST=functional/long
- stage:
if: *cron
os: linux
name: Long, device 4
env: CLOUD=1 SAUCE_EMUSIM_DEVICE_INDEX=4 LONG=1 TEST=functional/long
# - stage: "[CRON] Sauce RDC Tests"
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=0 TEST=functional/basic
# - stage:
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=1 TEST=functional/basic
# - stage:
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=0 TEST=functional/web
# - stage:
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=1 TEST=functional/web
# - stage:
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=0 TEST=functional/long
# - stage:
# if: type = cron
# os: linux
# env: CLOUD=1 SAUCE_RDC_DEVICE_INDEX=1 TEST=functional/long
install:
- npm --version
- node --version
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
npm install;
npm install --no-save mjpeg-consumer;
pushd node_modules/appium-webdriveragent;
carthage bootstrap --no-use-binaries;
cp Cartfile.resolved Carthage;
mkdir -p ./Resources/WebDriverAgent.bundle;
popd;
else
npm install --production;
npm install --no-save gulp appium-gulp-plugins chai chai-as-promised chai-subset wd unzip mocha@5 mocha-parallel-tests;
npm install --no-save saucelabs;
npx gulp fix-mocha-parallel-tests;
npm run build;
npx gulp periodic-output & export LONG_PID=$!;
fi
before_script: npm outdated || true
script:
- if [ -n "$CLOUD" ]; then
npx mocha-parallel-tests --max-parallel $MAX_PARALLEL --debug -t 120000 --require build/test/env/env --recursive build/test/$TEST;
else
npm run lint && npx mocha -t 0 $RECURSIVE build/test/$TEST -g @skip-ci -i --exit;
fi
after_script:
- if [-n "$LONG_PID" ]; then
kill $LONG_PID;
fi
after_success:
- if [ -n "$CI_METRICS" ]; then
mkdir -p ./ci-metrics && ls -la ./ci-metrics;
npm install -g appium-event-parser;
appium-event-parser -s -i ./ci-metrics;
fi
- if [ ${COVERALLS} = "1" ]; then npm run coverage; fi
notifications:
slack:
secure: gUvI7IXsz0vHK/S0cLCh0zJQhMsKC1PnMldQUzRwEmbJ5Yce2kWUP4Gw8EZ3zNhAvVDVf2R87Fqa2D7nfa/0gDr86n0c/fnVo8z/ctHK01YKnu/GaVEDwJG0WFA439J5Bu6wkbcdc+gncBKU1UenF4IcwcIUyQhkSe65Uc67MqwV1rzLj6JYWEcbI5qAJWJnWxC1Ie2Fqg/uTV4dNzEotcn0h4VF/TgezgAPBJxMuXK8u6r242g0b5B9XqmvOZP+/OsZ610gLNfpf0Piy2m1H/S7WSd51KJe9rJY8e9zihZFNHuc0geKBEgynr2Xtq2Iy+WF6UGM4P2eyhAsumcEJWxFsgjvsVVnhZKb17tvQMpOnayBx/DGpR0l8p3LHSevzGgBhOswNBglhOp7TmfvAzRYqqtphmUqBFRGEVQHsOeaVE/x6KWnFRVl/7ZjP7XE53TuXKqR/TdZzP4xg7u7e7XOvy3ehcqE4NIwL7VAm6vIgF0/2iHIXGf6OXTjBXOMFtEVzNO4rJ2MtnIXLk7ZXRwQgNrjoQKppIawSPdodGsb8NrkY95OJt8e3YzlXpneU93MBzS76SLaQ2TKf1dVXt9ibf/VZt/FTh3UgOQ6eTzkNCAEbUtI+ZA1KoST7tKW3ffQxtphPSkF+pErM37gOAwwmcSnF7WfTc0/1Dsk6i4=
on_success: always
on_pull_requests: false