I modifying a travis.yml where command runs for long time, more than 10 minutes. The special in this script is that, it is a maven command where the ouput is redirected to a file, and the whole command runs more than 35.
I’ve implemented Travis doc suggest to use
travis_wait , but I haven’t found any example or something how to use it with multiline scripts.
is there anyway my team can do this?
There are two reasons we want this:
- not dealing with maven’s very long output
- avoid hitting Travis 4MB ouput limit
My script looks like this and the
mvn clean install part should be waited.
script: - | if [[ -z "$TRAVIS_TAG" ]]; then mvn clean install > output.txt fi
What I tried so far are below, without positive results. I have to mention that I’m pretty new in working with yaml files.
script: - | travis_wait 40 if [[ -z "$TRAVIS_TAG" ]]; then mvn clean install > output.txt fi
script: - | if [[ -z "$TRAVIS_TAG" ]]; then travis_wait 40 mvn clean install > output.txt fi
ive seen similar help tickets but no answer, thank you! @montana any advice? sorry to tag you, you always seem to know the best