add support for travis-ci.com Open Source projects #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now it's possible to have public Open Source projects on travis-ci.com,
and many projects are moving from travis-ci.org to there because it has
better integration with GitHub and its features (such as the Checks
API).
This patch makes minimal changes to allow the user to choose between
fetching builds from travis-ci.org or travis-ci.com, keeping the default
to travis-ci.org.
Travis API was updated to v2.1 since this is the recommended version to
use on travis-ci.com Open Source projects.
Reference: https://docs.travis-ci.com/user/developer/#API-V2.1
Reference: https://blog.travis-ci.com/2018-05-02-open-source-projects-on-travis-ci-com-with-github-apps