summaryrefslogtreecommitdiffhomepage
path: root/codeclimate/export-coverage.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-06-10 13:29:47 -0400
committerrealtradam <[email protected]>2021-06-10 13:29:47 -0400
commitf79d08089a49ca0f2aa2318b1a13ccabda2d9aaa (patch)
tree3062d5a9f98d48cac9dcc8f2025507f5f76b7d66 /codeclimate/export-coverage.rb
parent9db98b8955125584debf17d7204715a1149578c5 (diff)
downloadFelECS-f79d08089a49ca0f2aa2318b1a13ccabda2d9aaa.tar.gz
FelECS-f79d08089a49ca0f2aa2318b1a13ccabda2d9aaa.zip
added codeclimate rake task
Diffstat (limited to 'codeclimate/export-coverage.rb')
-rw-r--r--codeclimate/export-coverage.rb16
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