Sha256: 978639eaa808d1bd6523a3274327d8857b0994cb11789003e6da589ee8b43611

Contents?: true

Size: 1.09 KB

Versions: 11

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env rake

require "rubygems"
require "bundler/setup"
Bundler::GemHelper.install_tasks

# See https://github.com/colszowka/simplecov/issues/171
desc "Set permissions on all files so they are compatible with both user-local and system-wide installs"
task :fix_permissions do
  system 'bash -c "find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;"'
end
# Enforce proper permissions on each build
Rake::Task[:build].prerequisites.unshift :fix_permissions

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList["spec/*_spec.rb"]
end

begin
  require "rubocop/rake_task"
  RuboCop::RakeTask.new
rescue LoadError
  task :rubocop do
    $stderr.puts "Rubocop is disabled"
  end
end

# Cucumber integration test suite is for impls that work with simplecov only - a.k.a. 1.9+
if RUBY_VERSION.start_with? "1.8"
  task :default => [:spec]
else
  require "cucumber/rake/task"
  Cucumber::Rake::Task.new

  if RUBY_VERSION.start_with? "1.9"
    task :default => [:spec, :cucumber]
  else
    task :default => [:rubocop, :spec, :cucumber]
  end
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
tdiary-5.0.9 vendor/bundle/gems/simplecov-0.14.1/Rakefile
simplecov-0.15.0 Rakefile
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/Rakefile
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/Rakefile
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/Rakefile
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/simplecov-0.14.1/Rakefile
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/simplecov-0.14.1/Rakefile
simplecov-patched-0.14.3 Rakefile
simplecov-patched-0.14.2 Rakefile
simplecov-0.14.1 Rakefile
simplecov-0.14.0 Rakefile