CI: Get logcat output (W and above) on failure
This commit is contained in:
		
							parent
							
								
									f05d0e12a0
								
							
						
					
					
						commit
						35c5f063f1
					
				@ -35,7 +35,7 @@ test:
 | 
				
			|||||||
    - ./F-Droid/tools/wait-for-emulator
 | 
					    - ./F-Droid/tools/wait-for-emulator
 | 
				
			||||||
    - adb shell input keyevent 82
 | 
					    - adb shell input keyevent 82
 | 
				
			||||||
    - echo " == Running Android tests on the 2.3.7 emulator"
 | 
					    - 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"
 | 
					    - echo " == Stopping Android 2.3.7 emulator"
 | 
				
			||||||
    - kill $!
 | 
					    - kill $!
 | 
				
			||||||
    - echo " == Creating Android 4.4.4 emulator"
 | 
					    - echo " == Creating Android 4.4.4 emulator"
 | 
				
			||||||
@ -46,6 +46,6 @@ test:
 | 
				
			|||||||
    - adb shell input keyevent 82
 | 
					    - adb shell input keyevent 82
 | 
				
			||||||
    - sleep 30 # 4.4 says it's ready before it actually is
 | 
					    - sleep 30 # 4.4 says it's ready before it actually is
 | 
				
			||||||
    - echo " == Running Android tests on the 4.4.4 emulator"
 | 
					    - 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"
 | 
					    - echo " == Stopping Android 4.4.4 emulator"
 | 
				
			||||||
    - kill $!
 | 
					    - kill $!
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user