From 35c5f063f1a96190aa8d201b8312525fd0caf9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 10 Sep 2015 18:11:28 -0700 Subject: [PATCH] CI: Get logcat output (W and above) on failure --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d16707a4e..b87c1a8e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,7 @@ test: - ./F-Droid/tools/wait-for-emulator - adb shell input keyevent 82 - echo " == Running Android tests on the 2.3.7 emulator" - - ADB_INSTALL_TIMEOUT=8 gradle connectedCheck + - ADB_INSTALL_TIMEOUT=8 gradle connectedCheck || { adb logcat -d '*:W'; exit 1; } - echo " == Stopping Android 2.3.7 emulator" - kill $! - echo " == Creating Android 4.4.4 emulator" @@ -46,6 +46,6 @@ test: - adb shell input keyevent 82 - sleep 30 # 4.4 says it's ready before it actually is - echo " == Running Android tests on the 4.4.4 emulator" - - ADB_INSTALL_TIMEOUT=8 gradle connectedCheck + - ADB_INSTALL_TIMEOUT=8 gradle connectedCheck || { adb logcat -d '*:W'; exit 1; } - echo " == Stopping Android 4.4.4 emulator" - kill $!