Extract several Code Quality Metrics for a Git repository from several services
- Commits (Git)
- Deploys (Heroku)
- Pull Requests (GitHub)
- Comments (PR / Commit / Issue Comments) (GitHub)
- Builds (Passed + Failed) (TravisCI)
- GPA (CodeClimate)
- Code Quality (Quality / Style / Security Issues) (CodeClimate)
- Code Coverage (CodeClimate)
TODO:
- Bugs found (Taiga?)
- Velocity (Taiga?)
-
Install Code Climate CLI
-
Run
bundle install
to fetch all dependencies. -
Create a
config.yml
file for your project (seeconfig.yml.sample
for options) -
Run
ruby lib/migrate.rb
to create the database structure -
Start Docker Quickstart Terminal (found in your Applications)
-
Setup Docker:
$ eval "$(docker-machine env default)"
-
Install CodeClimate CLI (follow instructions on https://github.com/codeclimate/codeclimate)
-
Run
ruby lib/migrate.rb
(beware! this will destroy the database!) -
Run
ruby lib/metrix.rb
-
Create GitHub Personal Access Token
-
Use GitHub Token to authenticate the Travis client:
$ travis login --pro --github-token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-
Open
~/.travis/config.yml
and copyaccess_token
fromhttps://api.travis-ci.com/
endpoint.