Automatically cancel pending Travis builds with each commit
|Reported by:||johnbillion||Owned by:|
This might be a meta ticket or it might be a @jorbin ticket.
When many commits land in core within a short (or not so short) period of time, a backlog of pending builds can build up on Travis, which means committers have to wait longer and longer to see the result of their commit. Sometimes interim builds are manually cancelled by users that have been given access by @jorbin.
Ideally, any pending builds (builds that have yet to start) would be automatically cancelled when each new build gets triggered by a commit. That way, when a build completes, all interim builds will be skipped and the most recent build will begin.
This works well for the WordPress project because we only have a single branch and don't need to worry about builds for other branches.
Travis has an API that could be used to cancel pending builds when each new build arrives.