I have a project using library Z3 solver, and want to apply Travis-CI for continuous testing. However, I could not set up z3 on the remote machine in Travis-CI.
Here is further information about my project:
- Created from IDE Eclipse Mars
- Use JDK 8
- Use Ant to buid build.xml
The content file .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'
The output on the remote machine console
... (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.
I have understood that the problem could be solved by adding the repository containing Z3 solver to .travis.yml (section before_install). I found one repository: https://launchpad.net/~hvr/+archive/ubuntu/z3. However, this repository does not work anymore. More clearly, after 10 minutes (default waiting time on Travis-CI machine), there is no response from this repository.
$ 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