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.
- Step.2
- Enter GitHub repo name, and click "Import Repo from GitHub" button.
- Step.3
- After a while, the project was loaded to Code Climate and analyzed.
_ 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.
- 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:
Install_fig5.png 196 download
[Information]
Install_fig4.png 198 download
[Information]
Install_fig3.png 201 download
[Information]
Install_fig2.png 216 download
[Information]
Install_fig1.png 228 download
[Information]
AddBadge_fig1.png 220 download
[Information]






Last-modified: 2016-06-25 (Sat) 22:41:45 (3162d)