I have a tests wrintten on java (which passes on local machine, test runs about 30 min) and I need to increase timeout in travis-ci, can I change timeout by changing .tavis.yml? This is my .tavis.yml file:
language: java
cache: apt
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq default-jdk maven
env:
- JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
script:
- travis_wait mvn package -Dtestng=test.xml
I'm asking because I have an error on travis:
Timeout (20 minutes) reached. Terminating "mvn package -Dtestng=test.xml"
So, do I have any option to change time out? May be I need to write down something to .tavis.yml? Thank you.
You can increase the timeout by modifying your script command. For instance, to increase the timeout to half an hour:
- travis_wait 30 mvn package -Dtestng=test.xml
See Mor's answer for a great alternative that doesn't "hang" the build output for 30 minutes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With