Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Rakefile: remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Feb 26, 2018
1 parent 7d2486b commit fcabd9e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
require 'rubygems'
require 'rake'
require 'bundler'
require 'bundler/gem_tasks'

Dir.glob('lib/tasks/*.rake').each { |r| import r }

begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
Expand All @@ -17,24 +13,9 @@ require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/unit_tests/**/*.rb'
spec.rcov = true
spec.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data}
end

task :clean do
puts 'Cleaning old coverage'
FileUtils.rm('coverage.data') if(File.exists? 'coverage.data')
FileUtils.rm_r('coverage') if(File.exists? 'coverage')
puts 'Cleaning .yardoc and doc folders'
FileUtils.rm_r('.yardoc') if(File.exists? '.yardoc')
FileUtils.rm_r('doc') if(File.exists? 'doc')
puts 'Cleaning spec/fixtures/target'
FileUtils.rm_r('spec/fixtures/target') if(File.exists? 'spec/fixtures/target')

end

task :default => [:spec]

0 comments on commit fcabd9e

Please sign in to comment.