Sha256: 9dd9e365e7e19c11aec5fa14403760ed9456393fdb9ee09a9e97df6b6fcd65b8

Contents?: true

Size: 951 Bytes

Versions: 5

Compression:

Stored size: 951 Bytes

Contents

#!/usr/bin/env rake

require 'rubygems'
require 'bundler/setup'
require 'appraisal'
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

# Cucumber integration test suite is for impls that work with simplecov only - a.k.a. 1.9+
if '1.9+'.respond_to? :encoding
  require 'cucumber/rake/task'
  Cucumber::Rake::Task.new
  task :default => [:test, :cucumber]
else
  task :default => [:test]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simplecov-0.9.0 Rakefile
simplecov-0.8.2 Rakefile
simplecov-0.8.1 Rakefile
simplecov-0.8.0.pre2 Rakefile
simplecov-0.8.0.pre Rakefile