aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/Rakefile
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-20 16:39:16 +0100
committerAlyssa Ross2016-09-20 16:39:16 +0100
commitad17bbff9c59ef5d0490e6af317f7ce2d3069f69 (patch)
tree2c4214fbdec51e26136f45413093bcdf898b761b /Library/Homebrew/cask/Rakefile
parent869fb0214971f3dbcccbe1915702ffc7e7d69d16 (diff)
downloadbrew-ad17bbff9c59ef5d0490e6af317f7ce2d3069f69.tar.bz2
cask-tests: fix loading simplecov
Diffstat (limited to 'Library/Homebrew/cask/Rakefile')
-rw-r--r--Library/Homebrew/cask/Rakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/cask/Rakefile b/Library/Homebrew/cask/Rakefile
index c30b2f671..fe3e75c98 100644
--- a/Library/Homebrew/cask/Rakefile
+++ b/Library/Homebrew/cask/Rakefile
@@ -6,6 +6,18 @@ homebrew_repo = `brew --repository`.chomp
$LOAD_PATH.unshift(File.expand_path("#{homebrew_repo}/Library/Homebrew"))
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
+namespace :test do
+ namespace :coverage do
+ desc "Upload coverage to Codecov"
+ task :upload do
+ require "simplecov"
+ require "codecov"
+ formatter = SimpleCov::Formatter::Codecov.new
+ formatter.format(SimpleCov::ResultMerger.merged_result)
+ end
+ end
+end
+
RuboCop::RakeTask.new(:rubocop) do |t|
t.options = ["--force-exclusion"]
end