Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill travis build with exit code 0 using command?

Tags:

travis-ci

Presently we are facing build failure problem in Travis because of https://github.com/travis-ci/travis-ci/issues/7702. I was just wondering if Travis has any command line option to kill it with exit code 0, then I can force travis to terminate 'after_success'. Will be a hacky way to deal with this situation until they solve this bug.

like image 299
Aayush Anand Avatar asked May 20 '17 14:05

Aayush Anand


1 Answers

The shell function travis_terminate will help.

Alternatively, you can ensure to do set +e before the call to exit.

travis_terminate 0 is the best solution at the moment.

like image 194
joepd Avatar answered Oct 26 '22 05:10

joepd