Skip to content

elpassion/metrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metrix

Extract several Code Quality Metrics for a Git repository from several services

Metrics

  • 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?)

Usage

  1. Install Code Climate CLI

  2. Run bundle install to fetch all dependencies.

  3. Create a config.yml file for your project (see config.yml.sample for options)

  4. Run ruby lib/migrate.rb to create the database structure

  5. Start Docker Quickstart Terminal (found in your Applications)

  6. Setup Docker:

    $ eval "$(docker-machine env default)"
  7. Install CodeClimate CLI (follow instructions on https://github.com/codeclimate/codeclimate)

  8. Run ruby lib/migrate.rb (beware! this will destroy the database!)

  9. Run ruby lib/metrix.rb

Obtaining Travis API Token

  1. Create GitHub Personal Access Token

  2. Use GitHub Token to authenticate the Travis client:

    $ travis login --pro --github-token XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  3. Open ~/.travis/config.yml and copy access_token from https://api.travis-ci.com/ endpoint.

About

Extract several Code Metrics from a repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages