I have found an Android project on GitHub which uses Travis-CI for continuous integration.
And I need to show the emulator lockket to get more information about the problem that occurs during automated build.
I tried to add both:
after_failure: - adb logcat after_script: - adb logcat but both commands Is not executed.
It is probably due to the Travis-CI Java project that executes a mvn install command before the actual script is executed and both commands are not executed ... I Any help stuck in will be appreciated.
I think you do not need it already but I will try to answer the question.
You should add a - all flag otherwise these packages were not available. Google has disapproved the -p --obuslete flag and is available only with the recommended (new) package - one-by-one flag. > See
resonant "y" | Android Update SDK - Filter Platform-Tools, Build-Tools-17.0.0, Android-16, Extra Android Support, $ ANDROID_SDKS - No-Uu - Force & gt; / Dev / Null Error: Unavailable Platform-Tools Error: Missing Platform-Tools Error: Unknown package filter ignores 'build-tools-17.0.0' Currently the latest platform -Tools are always suggested without - all flag but: $ / Android update sdk -u -t build-tools-17.0.0 Error: Ignore unknown package filter 'build-tools-17.0.0' Warning: package filter removed all packages. There is nothing to install. Please try updating again without package filter. $ ./android update sdk -a -u -t build-tools-17.0.0 Selected package to install: - Android SDK build-tools, modification 17 Perhaps build-tool And the cause of the Android-17 platform
And I have seen a work for Travis-Lint, I do not use it.
This is the current work around I use for logs, needs improvement but works for the emulator, -e you have your MOD_NAME Custom is required. # adb -e: Direct an ADB command for the running emulator. If more than one error is returned before_script: # - echo 'LOGCAT' # LogLarket Check debug output: http://developer.android.com/tools/help/logcat.html # Check the debugging log: http: // developer Android.com/tools/debugging/ Debugging-log.html # Comment on lines to debug output and redirect it to a file Custom tags for your app - ADB-A Lockcat *: W | T logcat.log & gt; / Dev / null 2 & gt; And 1 & amp; After_failure: # - Check the 'Failure' #ftc configuration: http://docs.travis-ci.com/user/ci-environment/#apt-configuration # To show login about testing with app name given below Comment on the lines on the Export section - sudo apt-get install -qq lynx - Export MOD_NAME = yourappmodulename - Export LOG_DIR = $ {TRAVIS_BUILD_DIR} / $ {MOD_NAME} / build / output / report / Android Tests / Connected / - Links - -Dup $ {LOG_DIR} com.android .builder.testing.Connectedevice.html & gt; MyconnectedDevice.log - Links --Dump $ {LOG_DIR} com.android.builder.testing.html & gt; MyTesting.log - * for file in .log; Do "echo $ $" file; Echo "====================="; Cat "$ file"; Done || Re: After_script: To kill #db, remove the line below and show logcat output - echo "LOGCAT"; Echo "========"; Cat logcat.log; I am looking for pre-installed options for lynx because sudo Based framework is not being used and cat is actually included for files, if someone knows how to fix it, thanks.
No comments:
Post a Comment