-
Notifications
You must be signed in to change notification settings - Fork 3
/
test_spec.yaml
28 lines (23 loc) · 928 Bytes
/
test_spec.yaml
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
version: 0.1
phases:
install:
commands:
- export PYTHON_VERSION=3
pre_test:
commands:
- adb -s $DEVICEFARM_DEVICE_UDID shell pm grant fi.aardsoft.devicefarmsample android.permission.READ_EXTERNAL_STORAGE
- adb -s $DEVICEFARM_DEVICE_UDID shell pm grant fi.aardsoft.devicefarmsample android.permission.WRITE_EXTERNAL_STORAGE
test:
commands:
- adb logcat -v time | tee log-output.txt &
- adb -s $DEVICEFARM_DEVICE_UDID shell am instrument -w -r -e foo bar -e bar baz fi.aardsoft.devicefarmsample
post_test:
commands:
- adb -s $DEVICEFARM_DEVICE_UDID pull /storage/emulated/0/Android/data/fi.aardsoft.devicefarmsample/files/output.txt
- mv output.txt $DEVICEFARM_LOG_DIR/test-output.txt
- mv log-output.txt $DEVICEFARM_LOG_DIR/log-output.txt
- ls -l $DEVICEFARM_LOG_DIR
- pwd
- echo $DEVICEFARM_LOG_DIR
artifacts:
- $DEVICEFARM_LOG_DIR