我正在构建一个以Firebase为主要数据库的android studio项目(Java)。但是,我现在正在travis.ci上工作。事实证明这很麻烦,现在我遇到了一个问题:最近10个月未收到任何输出,这可能表示构建已停止或构建本身有问题。任何帮助将不胜感激。
我尝试使用adb(添加和删除),但没有结果。
sudo: false
language: android
jdk: oraclejdk8
before_install:
- chmod +x gradlew
- travis_wait mvn install
env:
global:
- ADB_INSTALL_TIMEOUT=12 # minutes (2 minutes by default)
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
- tools # appears twice as per Travis docs
# The BuildTools version used by your project
- build-tools-28.0.3 # latest build-tools ver sometimes doesn't work well with travis
# The SDK version used to compile your project
- android-28 # android 9.0 Pie
- android-22 # another android version used for emulator
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-28
- extra-android-support
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- android list targets
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- adb wait-for-device
#- while [[ `adb shell pm path android` == 'Error'* ]]; do sleep 2; done
- adb shell input keyevent 82 &
- echo yes | sdkmanager "build-tools;28.0.3"
after_failure:
- for v in ~/shared/logs/*.log ; do
echo $v logtail ======================== ; tail -100 $v ;
done
- for v in broker middlemanager overlord router coordinator historical ; do
echo $v dmesg ======================== ;
docker exec -it druid-$v sh -c 'dmesg | tail -3' ;
done