Cuberite Forum
Turn off Travis push builds - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Turn off Travis push builds (/thread-2135.html)



Turn off Travis push builds - xoft - 09-25-2015

Since we've established the policy that PRs can only be merged after a successful CI build, it makes little sense to have Travis do two builds - one for the Push and one for the actual PR. We could save time if only the PR build was activated.

Is it even possible to set that up? I have no idea where in the project settings to look for this.


RE: Turn off Travis push builds - worktycho - 09-25-2015

Its a trivial change in the travis settings, but you have to login to travis with your github account to do it. I can also turn off the fixed concurrent build limit now.


RE: Turn off Travis push builds - xoft - 09-26-2015

Okay, I turned both off, we'll see what that does Smile


RE: Turn off Travis push builds - worktycho - 09-28-2015

I've discovered a problem with disabling push builds. Its what we use for coverity builds.


RE: Turn off Travis push builds - xoft - 09-28-2015

Any chance of getting it to work without the push builds? Isn't there a setting in .travis.yml to only build specific branches?


RE: Turn off Travis push builds - worktycho - 09-28-2015

I can only find settings to turn branches off. Still we might be able to turn off every branch except coverity scan.


RE: Turn off Travis push builds - xoft - 10-31-2015

An easier solution is to create a PR from the coverity branch and push there from time to time, thus triggering the PR builds instead of the push builds. I've already created the PR, but for some reason it doesn't seem to be working.
https://github.com/cuberite/cuberite/pull/2546


RE: Turn off Travis push builds - worktycho - 11-01-2015

According to http://stackoverflow.com/questions/26759088/run-coverity-scan-for-every-travis-pull-request-build coverity just won't run on PR builds.