Sync your GitHub projects with Travis CI to test your code in minutes.
Travis CI provides a REST API (V2, being superseded by V3) for interacting with its continuous integration service. The API covers repositories, builds, branches, jobs, and requests, with separate endpoints for open source projects (api.travis-ci.org), private projects (api.travis-ci.com), and self-hosted Travis CI Enterprise installations. Authentication is handled by exchanging a GitHub token for a Travis CI access token via the /auth/github endpoint; users must first log in through the web interface before this exchange is possible.
The API integrates with GitHub as its source of users, organizations, and repositories, and with Pusher for streaming build logs live. A /config endpoint exposes connection details for these external services, including the GitHub API endpoint, required GitHub OAuth scopes, and the Pusher application key. Enterprise setups behind a firewall can also use Slanger, whose URL is likewise exposed through /config.
This documentation is aimed at developers building custom clients or tools against the Travis CI API, such as CI dashboards, command-line tools, or integrations. Client libraries exist for Ruby (the travis gem, with Travis::Client and Travis::Pro namespaces) and a command-line client (travis). Requests must set a User-Agent header and an Accept header specifying the API version (application/vnd.travis-ci.2.1+json for V2.1).
API V3 is the most recent and recommended version with its own API Explorer; API V2 (documented here) was slated for deprecation sometime in 2018.
Travis CI provides a command-line client (travis) and an official Ruby client library, and the API can be accessed directly over HTTP by any custom client.
You exchange a GitHub token for a Travis CI access token by POSTing to /auth/github, and you must have logged into the Travis web interface at least once first.
travis-ci.org (accessed via api.travis-ci.org) is for open source projects, while travis-ci.com (accessed via api.travis-ci.com) is for private projects.
Yes, Enterprise setups use the API at https://travis.example.com/api, substituting the actual domain Travis CI runs on.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Resource health helps you diagnose and get support when an Azure issue impacts your resources.
Build tool and processes integrations to create efficient development pipelines.
The fastest continuous integration and continuous delivery platform.
Automate the software development process using continuous integration and continuous delivery.
Codeship is a Continuous Integration Platform in the cloud.
Get AWS service price right from your terminal.