new TravisStatusChecker(optionsopt)
Creates a status checker for Travis CI.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
TravisStatusCheckerOptions |
<optional> |
Options. |
- Source:
Members
(static, constant) ORG_URI
Travis CI for open source API endpoint.
Same name/value as lib/travis/client.rb#ORG_URI.
- Source:
(static, constant) PRO_URI
Travis Pro API endpoint.
Same name/value as lib/travis/client.rb#PRO_URI.
- Source:
Methods
getBranch(repoName, branchName, optionsopt) → {Promise.<!Object>}
Gets the Travis CI branch information for a given branch and repo name.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
repoName |
string | Travis repository name to query (e.g. owner/repo). | |
branchName |
string | Branch name to query. | |
options |
TravisStatusQueryOptions |
<optional> |
Query options. |
- Source:
Returns:
Promise with the response content or Error.
- Type
- Promise.<!Object>
getBuild(repoName, buildId, optionsopt) → {Promise.<!Object>}
Gets the Travis CI build information for a given build.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
repoName |
string | Travis repository name to query (e.g. owner/repo). | |
buildId |
string | ID of the build to query. | |
options |
TravisStatusQueryOptions |
<optional> |
Query options. |
- Source:
Returns:
Promise with the response content or Error.
- Type
- Promise.<!Object>
getRepo(repoName, optionsopt) → {Promise.<!Object>}
Gets the Travis CI repository information for a given name.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
repoName |
string | Travis repository name to query (e.g. owner/repo). | |
options |
TravisStatusQueryOptions |
<optional> |
Query options. |
- Source:
Returns:
Promise with the response content or Error.
- Type
- Promise.<!Object>