Showing Travis build status in GitHub repo

后端 未结 5 1737
逝去的感伤
逝去的感伤 2021-01-29 20:50

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 im

5条回答
  •  梦如初夏
    2021-01-29 20:56

    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.

提交回复
热议问题