_ 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.
_ Add Badge to GitHub Readme file.
- Step.1
- Click "Badges" button.
#ref(): File not found: "Addbadge_fig1.png" at page "HowToUse/CodeClimate/2016"
- 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