<?xml version="1.0" encoding="UTF-8" standalone="yes"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us"><id>https://blog.pgxn.org/tags/badges/</id><title>Badges</title><updated>2015-04-11T04:34:08Z</updated><link rel="self" type="application/atom+xml" href="https://blog.pgxn.org/tags/badges/feed.xml"/><link rel="alternate" type="text/html" href="https://blog.pgxn.org/tags/badges/"/><author><name>The PGXN Maintainers</name></author><generator uri="https://gohugo.io/" version="0.167.0">Hugo</generator><entry><id>https://blog.pgxn.org/post/116087351668</id><title type="html">PGXN Release Badges</title><link rel="alternate" type="text/html" href="https://blog.pgxn.org/2015/badges/"/><updated>2026-10-07T16:13:48Z</updated><published>2015-04-11T04:34:08Z</published><author><name>David E. Wheeler</name></author><category scheme="https://blog.pgxn.org/tags" term="badges" label="Badges"/><category scheme="https://blog.pgxn.org/tags" term="gemfury" label="Gemfury"/><category scheme="https://blog.pgxn.org/tags" term="travis-ci" label="Travis CI"/><category scheme="https://blog.pgxn.org/tags" term="coveralls" label="Coveralls"/><category scheme="https://blog.pgxn.org/tags" term="github" label="GitHub"/><summary type="html"><![CDATA[<p>Looks like it&rsquo;s been close to two years since my last post on the PGXN blog.
Apologies for that. I&rsquo;ve thought for a while maybe I should organize an
&ldquo;extension of the week&rdquo; series or something. Would there be interest in such a
thing?</p>
<p>Meanwhile, I&rsquo;m finally getting back to posting to report on a fun thing you
can now do with your PGXN distributions. Thanks to the <a href="https://badge.fury.io">Version Badge</a> service
from the nice folks at <a href="https://gemfury.com/">Gemfury</a>, you can badge your distributions! Badges
look like this:</p>]]></summary><content type="html" xml:base="https://blog.pgxn.org/" xml:space="preserve"><![CDATA[<p>Looks like it&rsquo;s been close to two years since my last post on the PGXN blog.
Apologies for that. I&rsquo;ve thought for a while maybe I should organize an
&ldquo;extension of the week&rdquo; series or something. Would there be interest in such a
thing?</p>
<p>Meanwhile, I&rsquo;m finally getting back to posting to report on a fun thing you
can now do with your PGXN distributions. Thanks to the <a href="https://badge.fury.io">Version Badge</a> service
from the nice folks at <a href="https://gemfury.com/">Gemfury</a>, you can badge your distributions! Badges
look like this:</p>
<p><a href="https://badge.fury.io/pg/semver"><img src="https://badge.fury.io/pg/semver.svg" alt="PGXN version"></a></p>
<p>You&rsquo;ve no doubt seem similar badges for Ruby, Perl, and Python modules. Now
the fun comes to PGXN. Want in? Assuming you have a distribution named
<code>pgfoo</code>, just put code like this into the README file:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-md" data-lang="md"><span class="line"><span class="cl">[<span class="nt">![PGXN version</span>](<span class="na">https://badge.fury.io/pg/pgfoo.svg</span>)](https://badge.fury.io/pg/pgfoo)
</span></span></code></pre></div><p>This is <a href="https://daringfireball.net/projects/markdown/">Markdown</a> format; use the syntax appropriate to your preferred README
format to get the badge to show up on GitHub and PGXN.</p>
<p>That&rsquo;s it! The badge will show the current releases version on PGXN, and the
button will link through to PGXN.</p>
<p>Use <a href="https://travis-ci.org">Travis CI</a>? You can badge your build status, too, as I&rsquo;ve done for
<a href="https://pgxn.org/dist/pgtap">pgTAP</a>, like this:</p>
<p><a href="https://travis-ci.org/theory/pgtap"><img src="https://travis-ci.org/theory/pgtap.png" alt="Build Status"></a></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-md" data-lang="md"><span class="line"><span class="cl">[<span class="nt">![Build Status</span>](<span class="na">https://travis-ci.org/theory/pgtap.png</span>)](https://travis-ci.org/theory/pgtap)
</span></span></code></pre></div><p><a href="https://coveralls.io">Coveralls</a> provides patches, too. I&rsquo;ve used them for <a href="https://github.com/theory/sqitch">Sqitch</a>, though I&rsquo;ve
not yet taken the time figure out how to do coverage testing with PostgreSQL
extensions. If you have, you can badge your current coverage like so:</p>
<p><a href="https://coveralls.io/r/theory/sqitch"><img src="https://coveralls.io/repos/theory/sqitch/badge.svg" alt="Coverage Status"></a></p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-md" data-lang="md"><span class="line"><span class="cl">[<span class="nt">![Coverage Status</span>](<span class="na">https://coveralls.io/repos/theory/sqitch/badge.svg</span>)](https://coveralls.io/r/theory/sqitch)
</span></span></code></pre></div><p>So get badging, and show off your PGXN distributions GitHub and elsewhere!</p>
]]></content></entry></feed>