Skip to content

Commit 7a8774c

Browse files
committed
Add adb logcat for failures
1 parent 7a3ba74 commit 7a8774c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,17 @@ matrix:
4747
before_script:
4848
- android list targets
4949
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
50-
- emulator -avd test -no-audio -no-window &
50+
- emulator -avd test -no-skin -no-audio -no-window &
5151
- android-wait-for-emulator
5252
- adb shell input keyevent 82 &
53+
# Unlock screen
54+
- adb shell input keyevent 82
5355
before_install:
5456
- nvm install 8
57+
- adb logcat > logcat.log &
5558
script: cd src && npm run test.android
59+
after_failure:
60+
- cat logcat.log
5661
- os: osx
5762
language: node_js
5863
node_js: "8"
@@ -77,6 +82,8 @@ android:
7782
- sys-img-x86-android-28
7883
- sys-img-armeabi-v7a-android-22
7984

85+
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
86+
8087
before_install:
8188
- sudo pip install --upgrade pip
8289
- sudo pip install six

0 commit comments

Comments
 (0)