Template:TravisCIStatus: Difference between revisions
(→Usage) |
No edit summary |
||
Line 23: | Line 23: | ||
The defaults are set to track the master branch of the main repository: | The defaults are set to track the master branch of the main repository: | ||
</noinclude>https://api.travis-ci.org/{{{user|qemu}}}/{{{repo|qemu}}}.png?branch={{{branch|master}}}&file=qemu.png {{#varexists: link|[https://travis-ci.org/{{{user|qemu}}}/{{{repo|qemu}}}] | </noinclude>https://api.travis-ci.org/{{{user|qemu}}}/{{{repo|qemu}}}.png?branch={{{branch|master}}}&file=qemu.png {{#varexists: link|[https://travis-ci.org/{{{user|qemu}}}/{{{repo|qemu}}}]}} |
Revision as of 16:01, 15 March 2019
Usage
This template can be used to embed a build status button for Testing/CI/Travis with an optional link:
{{TravisCIStatus|user=stsquad|repo=qemu|branch=testing/next|link=yes}}
Gives {{#varexists: link|[1]}}
Parameters
* user - username (usually mirrors your github id) * repo - name of your repo * branch - branch you are tracking * link - if set adds link to the page
Defaults
The defaults are set to track the master branch of the main repository:
{{#varexists: link|[2]}}