我有一个使用库 Z3 求解器的项目,并且想应用 Travis-CI 进行连续测试。但是,我无法在 Travis-CI 中的远程机器上设置 z3。
以下是有关我的项目的更多信息:
- 从 IDE Eclipse Mars 创建
- 使用 JDK 8
- 使用 Ant 构建build.xml
内容文件.travis.yml
language: java
sudo: enabled
jdk:
- oraclejdk8
before_install:
- sudo apt-get update
- sudo apt-get install z3 -y
script:
- ant build
- ant 'MyJUnitTest'
远程机器控制台上的输出
... (be removed for clarity)
$ sudo apt-get install z3 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package z3
The command "sudo apt-get install z3 -y" failed and exited with 100 during .
Your build has been stopped.
我知道可以通过将包含 Z3 求解器的存储库添加到.travis.yml(before_install部分)来解决该问题。我找到了一个存储库:https ://launchpad.net/~hvr/+archive/ubuntu/z3 。但是,此存储库不再起作用。更清楚的是,在 10 分钟后(Travis-CI 机器上的默认等待时间),此存储库没有响应。
$ sudo add-apt-repository ppa:hvr/z3
More info: https://launchpad.net/~hvr/+archive/ubuntu/z3
Press [ENTER] to continue or ctrl-c to cancel adding it
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