问题:最近10毫秒未收到任何输出。运行命令时:emulator -avd test -no-audio -no-window和android-wait-for-emulator

时间:2019-09-09 20:29:02

标签: travis-ci

我正在尝试运行travis,但是它并不总是能够完成其执行。跟随travis.yml文件和控制台输出的最后几行。 对于为什么系统通过执行,系统没有给出一致的答案。

travis.yml

language: android
jdk:
  - oraclejdk8

install: travis_wait 30 mvn install

env:
  global:
  - TERM=dumb

android:

  licenses:
    - android-sdk-license-.+
    - '.+'

  components:
    # Descomente as linhas abaixo se você quiser
    # usar a última revisão de Android SDK Tools
    - platform-tools
    - tools

    # A versão do BuildTools usada pelo seu projeto
    - build-tools-24.0.3

    # A versão do SDK Android usada para compilar seu projeto
    - android-24

    # Componentes adicionais
    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository
    - addon-google_apis-google-19

    # Especifique, no mínimo, uma imagem de sistema
    # se você precisar executar o emulador durante seus testes
    - sys-img-armeabi-v7a-android-24
    - sys-img-x86-android-19

before_install:
    - chmod +x gradlew

# Emulator Management: Create, Start and Wait
before_script:
    - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a -c 100M
    - emulator -avd test -no-audio -no-window -verbose -debug init &
    - android-wait-for-emulator
    - adb shell input keyevent 82 &

script:
    ./gradlew clean testReleaseUnitTest assembleRelease publishApkRelease

控制台:

emulator: Concatenated backend parameters:
 /usr/local/android-sdk-25.2.3/tools/qemu/linux-x86_64/qemu-system-armel -avd test -no-audio -no-window -verbose -debug init
emulator: Android virtual device file at: /home/travis/.android/avd/test.ini
emulator: virtual device content at /home/travis/.android/avd/test.avd
emulator: virtual device config file: /home/travis/.android/avd/test.avd/config.ini
emulator: using core hw config path: /home/travis/.android/avd/test.avd/hardware-qemu.ini
emulator: Found AVD target API level: 24
emulator: Read property file at /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//build.prop
emulator: No boot.prop property file found.
emulator: found skin 'WVGA800' in directory: /usr/local/android-sdk-25.2.3/platforms/android-24/skins/
emulator: autoconfig: -skin WVGA800
emulator: autoconfig: -skindir /usr/local/android-sdk-25.2.3/platforms/android-24/skins/
emulator: found skin-specific hardware.ini: /usr/local/android-sdk-25.2.3/platforms/android-24/skins//WVGA800/hardware.ini
emulator: autoconfig: -kernel /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//kernel-ranchu
emulator: Auto-detect: Kernel image requires new device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//ramdisk.img
emulator: Using initial system image: /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//system.img
emulator: autoconfig: -initdata /home/travis/.android/avd/test.avd/userdata.img
emulator: autoconfig: -cache /home/travis/.android/avd/test.avd/cache.img
emulator: autoconfig: -sdcard /home/travis/.android/avd/test.avd/sdcard.img
emulator: Increasing RAM size to 1024MB
emulator: VM heap size 48MB is below hardware specified minimum of 192MB,setting it to that value
emulator: System image is read only
emulator: GPU emulation is disabled
emulator: Found 1 DNS servers: 169.254.169.254
emulator: trying to load skin file '/usr/local/android-sdk-25.2.3/platforms/android-24/skins//WVGA800/layout'
emulator: Creating: /home/travis/.android/avd/test.avd/userdata-qemu.img
emulator: Creating empty ext4 cache partition: /home/travis/.android/avd/test.avd/cache.img
Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: Adjusting Contiguous Memory Allocation of 480x800 framebuffer for software renderer to 3MB.
emulator: Found 1 DNS servers: 169.254.169.254
Content of hardware configuration file:
  hw.cpu.arch = arm
  hw.cpu.model = cortex-a8
  hw.cpu.ncore = 2
  hw.ramSize = 1024
  hw.screen = multi-touch
  hw.mainKeys = true
  hw.trackBall = true
  hw.keyboard = false
  hw.keyboard.lid = false
  hw.keyboard.charmap = qwerty2
  hw.dPad = true
  hw.gsmModem = true
  hw.gps = true
  hw.battery = true
  hw.accelerometer = true
  hw.audioInput = true
  hw.audioOutput = true
  hw.sdCard = true
  hw.sdCard.path = /home/travis/.android/avd/test.avd/sdcard.img
  disk.cachePartition = true
  disk.cachePartition.path = /home/travis/.android/avd/test.avd/cache.img
  disk.cachePartition.size = 66m
  hw.lcd.width = 480
  hw.lcd.height = 800
  hw.lcd.depth = 16
  hw.lcd.density = 240
  hw.lcd.backlight = true
  hw.gpu.enabled = false
  hw.gpu.mode = (null)
  hw.gpu.blacklisted = no
  hw.initialOrientation = portrait
  hw.camera.back = emulated
  hw.camera.front = none
  vm.heapSize = 192
  hw.sensors.light = true
  hw.sensors.pressure = true
  hw.sensors.humidity = true
  hw.sensors.proximity = true
  hw.sensors.magnetic_field = true
  hw.sensors.orientation = true
  hw.sensors.temperature = true
  hw.useext4 = true
  kernel.path = /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//kernel-ranchu
  kernel.newDeviceNaming = yes
  kernel.supportsYaffs2 = no
  disk.ramdisk.path = /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//ramdisk.img
  disk.systemPartition.initPath = /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//system.img
  disk.systemPartition.size = 1792m
  disk.dataPartition.path = /home/travis/.android/avd/test.avd/userdata-qemu.img
  disk.dataPartition.initPath = /home/travis/.android/avd/test.avd/userdata.img
  disk.dataPartition.size = 550m
  avd.name = test
.
QEMU options list:
emulator: argv[00] = "/usr/local/android-sdk-25.2.3/tools/qemu/linux-x86_64/qemu-system-armel"
emulator: argv[01] = "-audio"
emulator: argv[02] = "none"
emulator: argv[03] = "-dns-server"
emulator: argv[04] = "169.254.169.254"
emulator: argv[05] = "-serial"
emulator: argv[06] = "null"
emulator: argv[07] = "-cpu"
emulator: argv[08] = "cortex-a15"
emulator: argv[09] = "-machine"
emulator: argv[10] = "type=ranchu"
emulator: argv[11] = "-m"
emulator: argv[12] = "1024"
emulator: argv[13] = "-append"
emulator: argv[14] = "qemu=1 androidboot.hardware=ranchu keep_bootcon earlyprintk=ttyAMA0 android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=0 cma=3M"
emulator: argv[15] = "-lcd-density"
emulator: argv[16] = "240"
emulator: argv[17] = "-kernel"
emulator: argv[18] = "/usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//kernel-ranchu"
emulator: argv[19] = "-initrd"
emulator: argv[20] = "/usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//ramdisk.img"
emulator: argv[21] = "-drive"
emulator: argv[22] = "index=0,id=sdcard,file=/home/travis/.android/avd/test.avd/sdcard.img"
emulator: argv[23] = "-device"
emulator: argv[24] = "virtio-blk-device,drive=sdcard"
emulator: argv[25] = "-drive"
emulator: argv[26] = "index=1,id=userdata,file=/home/travis/.android/avd/test.avd/userdata-qemu.img"
emulator: argv[27] = "-device"
emulator: argv[28] = "virtio-blk-device,drive=userdata"
emulator: argv[29] = "-drive"
emulator: argv[30] = "index=2,id=cache,file=/home/travis/.android/avd/test.avd/cache.img"
emulator: argv[31] = "-device"
emulator: argv[32] = "virtio-blk-device,drive=cache"
emulator: argv[33] = "-drive"
emulator: argv[34] = "index=3,id=system,file=/usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//system.img,read-only"
emulator: argv[35] = "-device"
emulator: argv[36] = "virtio-blk-device,drive=system"
emulator: argv[37] = "-netdev"
emulator: argv[38] = "user,id=mynet"
emulator: argv[39] = "-device"
emulator: argv[40] = "virtio-net-device,netdev=mynet"
emulator: argv[41] = "-show-cursor"
emulator: argv[42] = "-nographic"
emulator: argv[43] = "-monitor"
emulator: argv[44] = "none"
emulator: argv[45] = "-L"
emulator: argv[46] = "/usr/local/android-sdk-25.2.3/tools/lib/pc-bios"
emulator: argv[47] = "-android-hw"
emulator: argv[48] = "/home/travis/.android/avd/test.avd/hardware-qemu.ini"
Concatenated QEMU options:
 /usr/local/android-sdk-25.2.3/tools/qemu/linux-x86_64/qemu-system-armel -audio none -dns-server 169.254.169.254 -serial null -cpu cortex-a15 -machine type=ranchu -m 1024 -append 'qemu=1 androidboot.hardware=ranchu keep_bootcon earlyprintk=ttyAMA0 android.qemud=1 console=0 console=0 android.checkjni=1 qemu.gles=0 cma=3M' -lcd-density 240 -kernel /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//kernel-ranchu -initrd /usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//ramdisk.img -drive index=0,id=sdcard,file=/home/travis/.android/avd/test.avd/sdcard.img -device virtio-blk-device,drive=sdcard -drive index=1,id=userdata,file=/home/travis/.android/avd/test.avd/userdata-qemu.img -device virtio-blk-device,drive=userdata -drive index=2,id=cache,file=/home/travis/.android/avd/test.avd/cache.img -device virtio-blk-device,drive=cache -drive index=3,id=system,file=/usr/local/android-sdk-25.2.3/system-images/android-24/default/armeabi-v7a//system.img,read-only -device virtio-blk-device,drive=system -netdev user,id=mynet -device virtio-net-device,netdev=mynet -show-cursor -nographic -monitor none -L /usr/local/android-sdk-25.2.3/tools/lib/pc-bios -android-hw /home/travis/.android/avd/test.avd/hardware-qemu.ini
emulator: Starting QEMU main loop
qemu-system-armel: -audio: invalid option
emulator: Done with QEMU main loop
emulator: User configuration saved to /home/travis/.android/avd/test.avd/emulator-user.ini
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
The build has been terminated

Travis控制台无法确切告诉我为什么执行未完成。您能帮我确定并解决这个问题吗?

0 个答案:

没有答案