Skip to content

Commit

Permalink
Add coveralls badge to doc site and README.md.
Browse files Browse the repository at this point in the history
Testing Done:
Sample doc site publish here - you may need to refresh: http://pantsbuild.github.io/jsirois/index.html
And README.md renders as such: https://github.com/jsirois/pants/blob/d5e2a149c2fc368327524d8c7b16168a8936c5db/README.md

Bugs closed: 369, 544

Reviewed at https://rbcommons.com/s/twitter/r/972/
  • Loading branch information
jsirois authored and John Sirois committed Sep 18, 2014
1 parent da4c15b commit 40b936a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ many distinct projects.
Friendly documentation: http://pantsbuild.github.io/

We use [Travis CI](https://travis-ci.org) to verify the build
[![Build Status](https://travis-ci.org/pantsbuild/pants.svg?branch=master)](https://travis-ci.org/pantsbuild/pants/branches)
[![Build Status](https://travis-ci.org/pantsbuild/pants.svg?branch=master)](https://travis-ci.org/pantsbuild/pants/branches).

We use Coveralls for code coverage: [![Coverage Status](https://coveralls.io/repos/pantsbuild/pants/badge.png)](https://coveralls.io/r/pantsbuild/pants)
We use [Coveralls](https://coveralls.io) to monitor test coverage
[![Coverage Status](https://coveralls.io/repos/pantsbuild/pants/badge.png?branch=master)](https://coveralls.io/r/pantsbuild/pants).

20 changes: 15 additions & 5 deletions src/python/pants/docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,22 @@
ga('create', 'UA-39101739-2', 'auto');
ga('send', 'pageview');

// Show the travis-ci status graphic
// Show the travis-ci status graphic.
$('.wy-breadcrumbs').append(
'<div style="float: right;">' +
'<a href="https://travis-ci.org/pantsbuild/pants">' +
'<img src="https://travis-ci.org/pantsbuild/pants.png?branch=master">' +
'</a></div>');
'<div style="float: right; padding: 1px;">' +
'<a href="https://travis-ci.org/pantsbuild/pants">' +
'<img src="https://travis-ci.org/pantsbuild/pants.png?branch=master">' +
'</a>' +
'</div>');

// Show the coveralls status graphic.
$('.wy-breadcrumbs').append(
'<div style="float: right; padding: 1px;">' +
'<a href="https://coveralls.io/r/pantsbuild/pants?branch=master">' +
'<img src="https://coveralls.io/repos/pantsbuild/pants/badge.png?branch=master"' +
' alt="Coverage Status">' +
'</a>' +
'</div>');
});
</script>
<style type="text/css">
Expand Down

0 comments on commit 40b936a

Please sign in to comment.