Travis 构建卡在 jacoco 上

Travis build stucks on jacoco

这是我的travis.yml

language: java

sudo: required

jdk:
  - oraclejdk8

install: true

script:
  - sudo apt-get update && sudo apt-get install oracle-java8-installer
  - java -version

after_success:
- ./gradlew test jacocoTestReport coveralls

这是 travis 的输出:

[...]
:processTestResources
:testClasses
:test
Download https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946.pom
Download https://repo1.maven.org/maven2/org/jacoco/org.jacoco.build/0.7.5.201505241946/org.jacoco.build-0.7.5.201505241946.pom
Download https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946.jar
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated

我不知道为什么以及如何调试它:\有什么提示吗? 在我的机器上工作。

原来和jacoco没有关系。我将 JavaFX 与 TestFX 一起使用,当然,它需要一个帧缓冲区。它在启用 xvfb 后工作:

before_install:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"