You can automatically trigger build jobs on Travis CI when pushes are made to a repository in your GitHub Enterprise. Additionally, you can display the build status in the README for the repository.

GitHub Enterprise configuration

  1. Sign into GitHub Enterprise with your personal user account.
  2. Navigate to the repository you want to connect to Travis.
  3. In the right sidebar, click Settings.
  4. In the left sidebar, click Wehooks & Services.
  5. In the Services box, click Add service.
  6. Select "Travis CI".
  7. Fill in the configuration settings:
    • In the User field, type your Travis CI username.
    • In the Token field, type your Travis CI token.
    • In the Domain field, type the domain of your project on Travis CI.
  8. Click Add service.

README build status

  1. Navigate to your repository's page on Travis CI.
  2. In the top right corner of the page, click the build status image.
  3. In the build dialog, copy the URL from the Markdown field.
  4. In your GitHub Enterprise repository, paste the build status URL into the repository's README.