travis-web/app/templates/components/code-climate-popup.hbs
Piotr Sarnacki d46c0f13ac Refactor repo actions support
This commit refactors repo-actions support to use components and make
the implementation much simpler. It also fixes a bug with buttons being
displayed when they shouldn't be.
2015-03-16 13:54:14 +01:00

45 lines
1.2 KiB
Handlebars

<div id="code-climate" class="popup">
<img src="/images/icons/code-climate-logo.svg" id="code-climate-logo"/>
<a href="#" class="close" {{action "popupClose" target=view}}></a>
<p>
<b>Want test coverage for your tests?</b>
</p>
<p>
Integrating <a href="https://codeclimate.com">Code Climate's test coverage</a> reporting with your test
suite on Travis CI allows to track changes in coverage over time. If you haven't tried it out already, <a
{{bind-attr href=config.codeClimateUrl}}" target="_blank">sign
up today</a> to improve your code's quality. New customers get 20% off for the first three months!
</p>
<p>
It only takes a few steps, once you've set up your project:
</p>
<ol>
<li>
Add the `code-climate-reporter` gem to your Gemfile:<br/>
<pre>
gem "codeclimate-test-reporter", group: :test, require: nil
</pre>
</li>
<li>
Load the reporter in your `test_helper` or `spec_helper`, putting it at the very top:
<pre>
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start
</pre>
</li>
<li>
Add the Code Climate token to your .travis.yml:
<pre>
addons:
code_climate:
repo_token: adf08323...
</pre>
</li>
</ol>
</div>