Sha256: 06374648164f59ddd5eddc715a4709beadd5b94681f3e936835d89b07ef45a56

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 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 "rake/testtask"
Rake::TestTask.new(:test) do |test|
  test.libs << "lib" << "test"
  test.test_files = FileList["test/test_*.rb"]
  test.verbose = true
  test.warning = true
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 => [:test, :cucumber, :rubocop]
else
  task :default => [:test]
end

Version data entries

12 entries across 12 versions & 5 rubygems

Version Path
suzuko-0.1.8 vendor/bundle/ruby/2.0.0/gems/simplecov-0.10.0/Rakefile
suzuko-0.1.7 vendor/bundle/ruby/2.0.0/gems/simplecov-0.10.0/Rakefile
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/Rakefile
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/Rakefile
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/Rakefile
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/simplecov-0.10.0/Rakefile
vagrant-cloudstack-1.2.0 vendor/bundle/gems/simplecov-0.10.0/Rakefile
solidus_backend-1.0.0.pre3 vendor/bundle/gems/simplecov-0.10.0/Rakefile
solidus_backend-1.0.0.pre2 vendor/bundle/gems/simplecov-0.10.0/Rakefile
solidus_backend-1.0.0.pre vendor/bundle/gems/simplecov-0.10.0/Rakefile
vagrant-cloudstack-1.1.0 vendor/bundle/gems/simplecov-0.10.0/Rakefile
simplecov-0.10.0 Rakefile