diff options
| author | realtradam <[email protected]> | 2021-06-10 13:29:47 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-06-10 13:29:47 -0400 |
| commit | f79d08089a49ca0f2aa2318b1a13ccabda2d9aaa (patch) | |
| tree | 3062d5a9f98d48cac9dcc8f2025507f5f76b7d66 /codeclimate/export-coverage.rb | |
| parent | 9db98b8955125584debf17d7204715a1149578c5 (diff) | |
| download | FelECS-f79d08089a49ca0f2aa2318b1a13ccabda2d9aaa.tar.gz FelECS-f79d08089a49ca0f2aa2318b1a13ccabda2d9aaa.zip | |
added codeclimate rake task
Diffstat (limited to 'codeclimate/export-coverage.rb')
| -rw-r--r-- | codeclimate/export-coverage.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/codeclimate/export-coverage.rb b/codeclimate/export-coverage.rb new file mode 100644 index 0000000..3b99620 --- /dev/null +++ b/codeclimate/export-coverage.rb @@ -0,0 +1,16 @@ +require_relative 'env' + + +class ReportCoverage + class <<self + def format + puts ENV['CC_TEST_REPORTER_ID'] + puts `./codeclimate/test-reporter-latest-linux-amd64 format-coverage -t simplecov` + end + + def upload + puts ENV['CC_TEST_REPORTER_ID'] + puts `./codeclimate/test-reporter-latest-linux-amd64 upload-coverage --id #{ENV['CC_TEST_REPORTER_ID']}` + end + end +end |
