Hello World from OSS Silicon Valley


HowToUse/CodeClimate/2016

_ Prerequisite

  • xxx installation (You can refer Overall/xxx)

_ HowToUse

_ Load GitHub project

Step.1
Access CodeClimate (https://codeclimate.com/), login the service, and click "Add Open Source Repo" button.
Install_fig1.png
Step.2
Enter GitHub repo name, and click "Import Repo from GitHub" button.
Install_fig2.png
Step.3
After a while, the project was loaded to Code Climate and analyzed.
Install_fig3.png
Install_fig4.png
Install_fig5.png

_ Code Coverage

Step.1
Click "Test Coverage" menu, and follow the instruction.
Step.2
Set CODECLIMATE_REPO_TOKEN on CI configuration file.
env:
  global:
    secure: <encryption>

If you use travis-ci with rails, you can put token on .travis.yml with the following command.

$ gem install travis
$ travis encrypt CODECLIMATE_REPO_TOKEN=<secret key>

You can see secret key from code climate's web page.

Step.3
Execute command to measure coverage.
$ CODECLIMATE_REPO_TOKEN=<secret key> bundle exec rake

Then the report file is transfered to CodeClimate and you can see the coverage information from dashboard.

_ Add Badge to GitHub Readme file.

Step.1
Click "Badges" button.
AddBadge_fig1.png
Step.2
You can see Markdown by clicking "Markdown" menu. Copy it to Readme.md in GitHub. You can see sample from here

_ Author

S.Yatsuzuka

 
Attach file: fileInstall_fig5.png 164 download [Information] fileInstall_fig4.png 165 download [Information] fileInstall_fig3.png 168 download [Information] fileInstall_fig2.png 185 download [Information] fileInstall_fig1.png 168 download [Information] fileAddBadge_fig1.png 164 download [Information]
Last-modified: 2016-06-25 (Sat) 22:41:45 (2851d)