f7fusq
Last Updated: May 04, 2017
·
6.549K
· tomaszborowski
Avatar

How to skip making a build in Travis-ci

Well, since you cannot cancel a build which is already waiting in a queue, you have to think about it before committing :-)

Travis-Ci a has nice feature which allows to skip making a build for certain push. Just add [ci skip] into your commit's message to let Travis-Ci know, that you do not want to perform tests for the next push.

Full example:

git commit -m 'documentation update [ci skip]'

It is very useful when you are working things unrelated to application's code, ie. documentation, styling, etc.

Details: http://about.travis-ci.org/docs/user/how-to-skip-a-build/

Say Thanks
Respond

1 Response
Add your response

28892

Thanks so much Tomasz, this was my saving grace after 5 days trying to get TravisCI to play along with me. You were my savior. I have added a vote to this issue on Github https://github.com/travis-ci/travis-ci/issues/6301 suggesting this be done in future on traving using an ignore_changes: condition which would make commit messages look nice without the [ci skip] message. But again THANK YOU !!!!

7 months ago ·
Filed Under