travis script deployment timeout -


i have following deploy section in .travis.yml

deploy:   provider: script   script: bash scripts/deploy.sh   skip_cleanup: true   on:     all_branches: true 

the problem bash scripts/deploy.sh can take anywhere between 7 , 10 minutes meaning goes on 10 minute timeout travis has default. not worry - travis offers travis_wait. here updated .travis.yml.

deploy:   provider: script   script: travis_wait 30 bash scripts/deploy.sh   skip_cleanup: true   on:     all_branches: true 

problem is, fails script failed status 127.

is possible use travis_wait within script deployment?

i worked around wrapping deploy command (npm run deploy) in simple script:

#!/bin/bash  npm run deploy &  # output screen every 9 minutes prevent travis timeout export pid=$! while [[ `ps -p $pid | tail -n +2` ]];   echo 'deploying'   sleep 540 done 

Comments