Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel Previous travis builds on each push #35

Open
mgwidmann opened this issue Sep 29, 2017 · 0 comments
Open

Cancel Previous travis builds on each push #35

mgwidmann opened this issue Sep 29, 2017 · 0 comments

Comments

@mgwidmann
Copy link
Owner

On each push, kick off a Task to contact the travis build for that old SHA and cancel the job.

Travis' API for builds:
https://docs.travis-ci.com/api/#builds

Should be able to add a new function SlackCoder.BuildSystem.cancel/1 taking in the old PR before update and uses build_id/1 https://github.com/mgwidmann/slack_coder/blob/master/lib/slack_coder/build_system.ex#L68 to get the build ID and issue the request to cancel the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant