3. Linking GitHub and TravisΒΆ

Travis CI is a service that can be integrated with GitHub and that can run scripts whenever specific GitHub events happen, such as a push, a pull request, etc.

To set it up:

  1. Go to travis-ci.org.

  2. Click Sign in with GitHub then click Authorize travis-ci.

  3. Refresh the page after a few seconds then click your profile name at the top right corner, then click Accounts.

    This page lists all the repositories of your GitHub account.

  4. Click the toggle next to your documentation repository to tell Travis to monitor it.

  5. Click the gear icon to open the settings.

  6. Select:

    • Build only if .travis.yml is present

    • Build branch updates

    • Build pull request updates

  7. Go to GitHub and click Settings > Applications > Authorized OAuth Apps.

    You should see Travis CI in the list of services already added.

Travis has access to the repositories you ticked. You can now tell Travis what to do with your repo.

Next step: Setting up tests.