Cider-CI Support for Ruby and Ruby on Rails projects
This gem provides convenience executables to work with Cider-CI.
Installation
Add this line to your application's Gemfile:
gem 'cider_ci-support', '~> 1.0.0'
Usage
Aggregate Coverage with cider-ci_coverage
Add Simplecov to your project and configure it.
Have the coverage output attached to the trials, e.g.
task_defaults: trial_attachments: coverage_resultset: glob: 'coverage/.resultset.json' content-type: application/jsonRun the tests on Cider-CI.
Within the top level directory of you project, e.g.
cider-ci_coverage
which will create the coverage output in ./coverage/. Alternatively
cider-ci_coverage --upload
will additionally upload the files ./coverage/**/*
as tree-attachments.
- Set the desired
limit(optionally).cider-ci_coveragewill exit with value 0 if and only if the rationcovered / uncovered linesin per cent is above the limit (default 95%). This limit can be set by the--limit LIMIToption whereLIMITis a integer.
cider-ci_coverage --upload --limit 99
Static complexity code analysis with cider-ci_flog
cider-ci_flog uses flog to perform a static code analysis. It exits with
0 if and only if there are no offenders. The original flog always exits with
- Therefore
cider-ci_floglends itself to be used within a task of a Cider-CI execution suite.
Static similarity code analysis with cider-ci_flay
cider-ci_flay uses flay to perform a static code
analysis. It exits with 0 if and only if there are no offenders. The
original flay always exits with 0. Therefore
cider-ci_flay lends itself to be used within a task of a
Cider-CI execution suite.