-
Notifications
You must be signed in to change notification settings - Fork 33
/
.evg.yml
702 lines (663 loc) · 23.6 KB
/
.evg.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
functions:
"fetch_source":
- command: git.get_project
params:
directory: "stitch-java-sdk"
"setup_mongod":
- command: shell.exec
params:
script: |
set -e
curl --silent ${mongodb_url} | tar xz
cd mongodb-*
mkdir db_files
"run_mongod":
- command: shell.exec
params:
background: true
script: |
set -e
cd mongodb-*
echo "starting mongod..."
./bin/mongod --dbpath ./db_files --port 26000 --replSet test
- command: shell.exec
params:
script: |
set -e
cd mongodb-*
echo "waiting for mongod to start up"
./bin/mongo --nodb --eval 'assert.soon(function(x){try{var d = new Mongo("localhost:26000"); return true}catch(e){return false}}, "timed out connecting")'
./bin/mongo --port 26000 --eval 'rs.initiate()'
echo "mongod is up."
"setup_android":
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
if [ ! -e $SDK_HOME ]; then
echo "Installing ANDROID SDK"
DOWNLOAD_LOGS=$SDK_HOME/download_logs
mkdir -p $SDK_HOME
mkdir -p $DOWNLOAD_LOGS
cd $SDK_HOME
mkdir .android
touch .android/repositories.cfg
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
SDK_PACKAGE=sdk-tools-darwin-4333796.zip
curl -O -s https://dl.google.com/android/repository/$SDK_PACKAGE
unzip -o -qq $SDK_PACKAGE
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"
yes | $SDK_HOME/tools/bin/sdkmanager --channel=0 \
"platforms;android-28" \
"emulator" \
"patcher;v4" \
"platform-tools" \
"build-tools;28.0.3" \
"system-images;android-26;google_apis;x86_64" \
"extras;intel;Hardware_Accelerated_Execution_Manager"
PLATFORM_TOOLS=platform-tools-latest-darwin.zip
curl -OL -s https://dl.google.com/android/repository/$PLATFORM_TOOLS
unzip -o -qq $PLATFORM_TOOLS
$SDK_HOME/tools/bin/sdkmanager --update
yes | $SDK_HOME/tools/bin/sdkmanager --licenses
fi
"setup_stitch":
- command: shell.exec
params:
shell: "bash"
script: |
set -e
echo "cloning stitch"
git clone git@github.com:10gen/stitch stitch
echo "downloading update_doc"
curl --silent -O "https://s3.amazonaws.com/stitch-artifacts/stitch-mongo-libs/stitch_mongo_libs_osx_patch_cbcbfd8ebefcca439ff2e4d99b022aedb0d61041_59e2b7a5c9ec4432c400181c_17_10_15_01_19_33/update_doc"
echo "downloading assisted_agg"
curl --silent -O "https://s3.amazonaws.com/stitch-artifacts/stitch-mongo-libs/stitch_mongo_libs_osx_patch_cbcbfd8ebefcca439ff2e4d99b022aedb0d61041_59e2b7ab2a60ed5647001827_17_10_15_01_19_39/assisted_agg"
chmod +x update_doc
chmod +x assisted_agg
mkdir -p stitch/etc/dylib
cd stitch/etc/dylib
curl -s "${server_stitch_lib_url}" | tar xvfz - --strip-components=1
cd -
echo "building transpiler"
cd stitch/etc/transpiler
curl -O "https://nodejs.org/dist/v8.11.2/node-v8.11.2-darwin-x64.tar.gz"
tar zxf node-v8.11.2-darwin-x64.tar.gz
export PATH=`pwd`/node-v8.11.2-darwin-x64/bin/:$PATH
rm -rf $HOME/.yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
yarn install && yarn run build -t ${transpiler_target}
- command: shell.exec
params:
shell: "bash"
script: |
set -e
export ROOT_DIR=`pwd`
export PATH=$ROOT_DIR/:$PATH
curl --silent https://dl.google.com/go/go1.13.darwin-amd64.tar.gz | tar xz
export GOROOT=$ROOT_DIR/go
export PATH=$GOROOT/bin:$PATH
export STITCH_PATH=$ROOT_DIR/stitch
export PATH="$PATH:$STITCH_PATH/etc/transpiler/bin"
export LD_LIBRARY_PATH="$STITCH_PATH/etc/dylib/lib"
echo "running stitch"
# TODO: Probably better to get an API key added to mimic cloud
cd $STITCH_PATH
go run cmd/auth/user.go addUser -domainID 000000000000000000000000 -mongoURI mongodb://localhost:26000 -salt 'DQOWene1723baqD!_@#' -id "unique_user@domain.com" -password "password"
"run_stitch":
- command: shell.exec
params:
shell: "bash"
silent: true
background: true
script: |
export ROOT_DIR=`pwd`
export PATH=$ROOT_DIR/:$PATH
export GOROOT=$ROOT_DIR/go
export PATH=$GOROOT/bin:$PATH
export STITCH_PATH=$ROOT_DIR/stitch
export PATH="$PATH:$STITCH_PATH/etc/transpiler/bin"
export LD_LIBRARY_PATH="$STITCH_PATH/etc/dylib/lib"
cd $STITCH_PATH
go run cmd/server/main.go --configFile $STITCH_PATH/etc/configs/test_config_sdk_base.json --configFile $STITCH_PATH/etc/configs/test_config_sdk_android.json
- command: shell.exec
params:
shell: "bash"
script: |
counter=0
until $(curl --output /dev/null --silent --head --fail http://localhost:9090); do
echo "checking for API server to be up..."
sleep 1
let counter++
if [ $counter -gt 100 ]; then
exit 1
fi
done
"setup_test_creds":
- command: shell.exec
params:
shell: "bash"
silent: true
script: |
set -e
cd stitch-java-sdk
echo "test.stitch.twilioSid=${test_twilio_sid}" >> local.properties
echo "test.stitch.twilioAuthToken=${test_twilio_authtoken}" >> local.properties
echo "test.stitch.awsAccessKeyId=${test_aws_key}" >> local.properties
echo "test.stitch.awsSecretAccessKey=${test_aws_secret}" >> local.properties
echo "test.stitch.fcmSenderId=${test_fcm_sender_id}" >> local.properties
echo "test.stitch.fcmApiKey=${test_fcm_api_key}" >> local.properties
echo "test.stitch.androidPerfStitchAPIKey=${perf_android_api_key}" >> local.properties
echo "test.stitch.perf.stitchHost=http://localhost:9090" >> local.properties
echo "test.stitch.perf.iters=5" >> local.properties
echo "test.stitch.perf.hostname=Evergreen" >> local.properties
echo "test.stitch.perf.docSizes=1024,2048,4096,8192" >> local.properties
echo "test.stitch.perf.numDocs=100,500,1000,2000,4000" >> local.properties
echo "test.stitch.perf.dataGranularity=1000" >> local.properties
echo "test.stitch.perf.outliers=0" >> local.properties
echo "test.stitch.perf.outputStdout=true" >> local.properties
echo "test.stitch.perf.outputStitch=true" >> local.properties
echo "test.stitch.perf.rawOutput=false" >> local.properties
"create_emulator":
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
# Create the AVD
echo "Creating AVD"
echo no | $SDK_HOME/tools/bin/avdmanager create avd -n android_avd -c 1000M -k "system-images;android-26;google_apis;x86_64" -f
"cleanup_adb":
- command: shell.exec
params:
shell: "bash"
script: |
echo "Cleaning up old adb"
pid=`ps aux | pgrep adb`
if [ -z "$pid" ]
then
echo "\$pid is empty"
else
kill -9 $pid
fi
"setup_emulator":
- command: shell.exec
params:
shell: "bash"
background: true
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
# Create the AVD
echo "Creating AVD"
$SDK_HOME/tools/emulator -avd android_avd -no-audio -no-window -no-snapshot -wipe-data -gpu off &
EMULATOR_PID=$!
sleep 86400
- command: shell.exec
params:
shell: "bash"
script: |
set -e
echo "Waiting for emulator to be ready"
SDK_HOME=`pwd`/.android
# Wait for ADB to detect the device
$SDK_HOME/platform-tools/adb wait-for-device
# Belt and braces waiting for the device
bootanim=""
failcounter=0
timeout_in_sec=360
until [[ "$bootanim" =~ "stopped" ]]; do
bootanim=`$SDK_HOME/platform-tools/adb -e shell getprop init.svc.bootanim 2>&1 &`
if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline"
|| "$bootanim" =~ "running" ]]; then
let "failcounter += 1"
if [[ "$failcounter" -gt timeout_in_sec ]]; then
echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator"
exit 1
elif (( "$failcounter" % 10 )); then
echo "Waiting for emulator to start"
fi
fi
sleep 5
done
echo "Emulator is ready"
"setup_logcat":
- command: shell.exec
params:
shell: "bash"
background: true
script: |
set -e
LOGCAT_PID=''
cleanup() {
kill -9 $LOGCAT_PID
}
trap cleanup EXIT
SDK_HOME=`pwd`/.android
$SDK_HOME/platform-tools/adb logcat &
LOGCAT_PID=$!
sleep 86400
"publish_coveralls":
- command: shell.exec
params:
shell: "bash"
silent: true
script: |
set -e
echo export COVERALLS_REPO_TOKEN=${coveralls_repo_token} >> creds
- command: shell.exec
params:
shell: "bash"
script: |
set -e
source ./creds
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
export CI_NAME="evergreen"
export CI_BUILD_NUMBER="${version_id}"
export COVERALLS_PARALLEL=true
export COVERALLS_GIT_COMMIT=${revision}
if [ -z "${github_pr_number}" ]
then
if [ "${is_patch}" = "true" ]; then
exit 0
fi
export CI_BRANCH=${branch_name}
else
PR_INFO=`curl https://api.github.com/repos/${github_org}/${github_repo}/pulls/${github_pr_number}`
BRANCH=`echo $PR_INFO | python -c "import sys, json; print json.load(sys.stdin)['head']['ref']"`
export CI_BRANCH=$BRANCH
export CI_PULL_REQUEST=${github_pr_number}
fi
./gradlew coveralls
"setup_android_sdk_env_vars":
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
echo "test.stitch.baseURL=http://localhost:9090" >> local.properties
tasks:
- name: lint
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
./gradlew lint --continue --warning-mode=all < /dev/null
- command: s3.put
params:
aws_key: ${test_artifacts_aws_key}
aws_secret: ${test_artifacts_aws_secret}
local_files_include_filter:
- stitch-java-sdk/**/build/reports/**/*lint*.html
remote_file: ${build_id}/report
bucket: stitch-test-artifacts
content_type: text/html
permissions: public-read
- name: ktlint
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
./gradlew ktlint --continue --warning-mode=all < /dev/null
- name: checkstyle
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
./gradlew checkstyle --continue --warning-mode=all < /dev/null
- command: s3.put
params:
aws_key: ${test_artifacts_aws_key}
aws_secret: ${test_artifacts_aws_secret}
local_files_include_filter:
- stitch-java-sdk/**/build/outputs/**/*checkstyle*.html
remote_file: ${build_id}/report
bucket: stitch-test-artifacts
content_type: text/html
permissions: public-read
- name: findbugs
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
./gradlew findbugs --continue --warning-mode=all < /dev/null
- command: s3.put
params:
aws_key: ${test_artifacts_aws_key}
aws_secret: ${test_artifacts_aws_secret}
local_files_include_filter:
- stitch-java-sdk/**/build/outputs/**/*findbugs*.html
remote_file: ${build_id}/report
bucket: stitch-test-artifacts
content_type: text/html
permissions: public-read
- name: pmd
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
SDK_HOME=`pwd`/.android
export JAVA_HOME="/opt/java/jdk8"
export ANDROID_HOME=$SDK_HOME
export ANDROID_SDK_ROOT=$SDK_HOME
export ANDROID_SDK_HOME=$SDK_HOME
cd stitch-java-sdk
./gradlew pmd --continue --warning-mode=all < /dev/null
command: s3.put
params:
aws_key: ${test_artifacts_aws_key}
aws_secret: ${test_artifacts_aws_secret}
local_files_include_filter:
- stitch-java-sdk/**/build/outputs/**/*pmd*.html
remote_file: ${build_id}/report
bucket: stitch-test-artifacts
content_type: text/html
permissions: public-read
- name: run_core_sdk_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:stitch-core-sdk:test
- name: run_android_sdk_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:stitch-android-coretest:connectedAndroidTest
- name: run_core_services_aws_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-aws:test
- name: run_android_services_aws_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
ps aux
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-aws:connectedAndroidTest
- name: run_core_services_aws_s3_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-aws-s3:test
- name: run_android_services_aws_s3_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-aws-s3:connectedAndroidTest
- name: run_core_services_aws_ses_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-aws-ses:test
- name: run_android_services_aws_ses_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-aws-ses:connectedAndroidTest
- name: run_core_services_fcm_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-fcm:test
- name: run_android_services_fcm_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-fcm:connectedAndroidTest
- name: run_core_services_http_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-http:test
- name: run_android_services_http_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-http:connectedAndroidTest
- name: run_core_services_mongodb_local_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-mongodb-local:test
- name: run_android_services_mongodb_local_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-mongodb-local:connectedAndroidTest
- name: run_core_services_mongodb_remote_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-mongodb-remote:test
- name: run_android_services_mongodb_remote_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-mongodb-remote:connectedAndroidTest
- name: run_android_services_mongodb_remote_perftests_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-mongodb-remote-perftests:connectedAndroidTest
post:
- command: attach.xunit_results
params:
files:
- "./stitch-java-sdk/android/services/mongodb-remote-perftests/build/outputs/androidTest-results/connected/*.xml"
- name: run_core_services_twilio_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :core:core-services:stitch-core-services-twilio:test
- name: run_android_services_twilio_tests
commands:
- command: shell.exec
params:
shell: "bash"
script: |
set -e
sh stitch-java-sdk/etc/run_core_test.sh :android:android-services:stitch-android-services-twilio:connectedAndroidTest
task_groups:
- name: run_core_tests
setup_group_can_fail_task: true
max_hosts: 2
setup_group:
- func: "fetch_source"
- func: "setup_android"
tasks:
- run_core_sdk_tests
- run_core_services_mongodb_remote_tests
- run_core_services_aws_tests
- run_core_services_aws_s3_tests
- run_core_services_aws_ses_tests
- run_core_services_fcm_tests
- run_core_services_http_tests
- run_core_services_mongodb_local_tests
- run_core_services_twilio_tests
teardown_task:
- command: attach.xunit_results
params:
file: "./stitch-java-sdk/test_results/*.xml"
- command: shell.exec
params:
shell: "bash"
script: |
set -e
rm -rf ./stitch-java-sdk/test_results/
- name: run_android_tests
setup_group_can_fail_task: true
max_hosts: 4
setup_group:
- func: "fetch_source"
- func: "setup_mongod"
- func: "setup_android"
- func: "run_mongod"
- func: "setup_stitch"
- func: "setup_test_creds"
- func: "setup_android_sdk_env_vars"
- func: "cleanup_adb"
- func: "create_emulator"
- func: "setup_logcat"
setup_task:
- func: "run_mongod"
- func: "run_stitch"
- func: "setup_emulator"
tasks:
- run_android_sdk_tests
- run_android_services_mongodb_remote_tests
- run_android_services_aws_tests
- run_android_services_aws_s3_tests
- run_android_services_aws_ses_tests
- run_android_services_fcm_tests
- run_android_services_http_tests
- run_android_services_mongodb_local_tests
- run_android_services_twilio_tests
teardown_task:
- command: attach.xunit_results
params:
file: "./stitch-java-sdk/test_results/connected/*.xml"
- command: shell.exec
params:
shell: "bash"
script: |
set -e
rm -rf ./stitch-java-sdk/test_results/
- name: run_linter
setup_group_can_fail_task: true
max_hosts: 2
setup_group:
- func: "fetch_source"
- func: "setup_android"
tasks:
- findbugs
- lint
- ktlint
- checkstyle
- pmd
buildvariants:
- name: macos-1014
display_name: macos-1014
run_on:
- macos-1014
expansions:
mongodb_url: http://fastdl.mongodb.org/osx/mongodb-osx-ssl-x86_64-4.0.2.tgz
transpiler_target: node8-macos
server_stitch_lib_url: 'https://s3.amazonaws.com/mciuploads/mongodb-mongo-master/stitch-support/macos/18ca0d551818d6c8274358b8e6444640bec93c88/stitch-support-4.3.0-120-g18ca0d5.tgz'
tasks:
- name: run_core_tests
- name: run_android_tests
- name: run_linter