Showing Travis build status in GitHub repo

andig picture andig · Nov 6, 2013 · Viewed 35.1k times · Source

I remember recently seeing the Travis build status of a pr or commit in GitHub browsing the repository (but can't find where). I'm not talking about the Travis build status images in README.md but an actual GitHub feature (green box with a friendly check mark).

While my commits build on Travis just fine I'd like to get the results displayed in GitHub (which they don't do right now). I'd like to know how to enable this.

UPDATE

Found an example here - see the small green check mark saying "Travis-CI build passed"?

Answer

Adrian Enriquez picture Adrian Enriquez · Jun 20, 2014

Github Integration

  1. Go to https://travis-ci.org/{username or org}/{repository}

  2. Click the Status Image (a pop-up will appear)

enter image description here

  1. Select a branch, then click the dropdown Image URL ▼ and set it to Markdown ▼.

enter image description here

  1. Copy Paste the code to your README.md

  2. Git add, commit & push. Refresh Github and you'll see the image now.