Sha256: acadc339c102c140880c81b32f71d7cab377d6a21b39408ad128acda7c1c1359

Contents?: true

Size: 1015 Bytes

Versions: 18

Compression:

Stored size: 1015 Bytes

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 >= "1.9"
  require "cucumber/rake/task"
  Cucumber::Rake::Task.new
  task :default => [:spec, :cucumber, :rubocop]
else
  task :default => [:spec]
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/simplecov-0.12.0/Rakefile
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/simplecov-0.12.0/Rakefile
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/simplecov-0.12.0/Rakefile
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/simplecov-0.12.0/Rakefile
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
simplecov-0.12.0 Rakefile
cvss-suite-1.0.7 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.6 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.5 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.4 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.3 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.2 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.1 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
cvss-suite-1.0.0 vendor/cache/ruby/2.2.0/gems/simplecov-0.11.2/Rakefile
simplecov-0.11.2 Rakefile
simplecov-0.11.1 Rakefile
simplecov-0.11.0 Rakefile