Template:TravisCIStatus: Difference between revisions

From QEMU
(Add TravisCI button template)
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
==Usage==
==Usage==


This template can be used to embed a build status button for [[Testing/CI/Travis]] with an optional link:
This template can be used to embed a build status button for [[Testing/CI/Travis]] with an link:


<pre>
<pre>
{{TravisCIStatus|user=stsquad|repo=qemu|branch=testing/next|link=yes}}
{{TravisCIStatus|user=stsquad|repo=qemu|branch=testing/next}}
</pre>
</pre>


Gives {{TraivCIStatus|user=stsquad|repo=qemu|branch=testing/next|link=yes}}
Gives {{TravisCIStatus|user=stsquad|repo=qemu|branch=testing/next}}


=== Parameters ===
=== Parameters ===
Line 22: Line 22:
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 [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

Latest revision as of 09:35, 23 October 2019

Usage

This template can be used to embed a build status button for Testing/CI/Travis with an link:

{{TravisCIStatus|user=stsquad|repo=qemu|branch=testing/next}}

Gives next&file=qemu.png

Parameters

* user - username (usually mirrors your github id)
* repo - name of your repo
* branch - branch you are tracking

Defaults

The defaults are set to track the master branch of the main repository:

qemu.png?branch=master&file=qemu.png