Select the repository you are interested in and click the badge icon next to the title.
Select the branch you want to check the build status for.
Select Markdown, copy the text below and copy paste it in your README.md file
You are done !
Check this repository if you need an example.