Skip to content

Add support for polling Travis CI builds by SHA - #12

Merged
phillipj merged 1 commit into
masterfrom
poll-travis-by-sha
Apr 7, 2016
Merged

Add support for polling Travis CI builds by SHA#12
phillipj merged 1 commit into
masterfrom
poll-travis-by-sha

Conversation

@phillipj

Copy link
Copy Markdown
Member

Compared to the nodejs.org repo, Travis doesn't pick up newly created PR's from nodejs/readable-stream. Strangely enough it does pick up commits and builds them though.

Therefore these changes adds support for polling Travis builds by commit SHAs rather than PR #id alone. The bot tries to do a smart choice about which polling to use by checking if Travis has had any builds triggered by PR's lately, if not if starts to poll by SHA.

Disclaimer for sore eyes: this introduces a lot of duplicated code between polling PR's and SHAs. I'd rather get this up-n-running and clean up the mess later.

Refs nodejs/readable-stream#194 (comment)

@phillipjphillipj mentioned this pull request Apr 7, 2016
@phillipj
phillipjforce-pushed the poll-travis-by-sha branch from 8a4b30a to 5856c8aCompareApril 7, 2016 19:13
Compared to the nodejs.org repo, Travis doesn't pick up newly created PR's
from nodejs/readable-stream. Strangely enough it does pick up commits and
builds them though.
Therefore these changes adds support for polling Travis builds by commit SHAs
rather than PR #id alone. The bot tries to do a smart choice about which polling
to use by checking if Travis has had *any* builds triggered by PR's lately,
if not if starts to poll by SHA.
@phillipj
phillipjforce-pushed the poll-travis-by-sha branch from 5856c8a to cf21a4fCompareApril 7, 2016 19:17
@phillipj
phillipj merged commit 8824234 into masterApr 7, 2016
@phillipj
phillipj deleted the poll-travis-by-sha branch April 7, 2016 19:22
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@phillipj