Sha256: b29fcfd558c03633459de95eeb4ce42fbb5f60f35d54155987bbe1de3cffd2d5
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
require 'bundler/gem_tasks' require 'rubygems' require 'cucumber' require 'cucumber/rake/task' require 'coveralls/rake/task' require 'rubocop/rake_task' version = RUBY_VERSION[0..2].split('.')[0..1].join('.').to_f desc 'Run lint check RuboCop' task :rubocop do RuboCop::RakeTask.new do |t| t.formatters = %w(files offenses) t.options = [['--config', '.rubocop.yml']] t.fail_on_error = true end end desc 'Test' Cucumber::Rake::Task.new(:features) do |t| t.profile = 'default' end desc 'Check test coverage' Coveralls::RakeTask.new task :clean do `rm -rf doc` `rm -rf .yardoc` `git checkout doc` end if ENV['JRUBY'] || RUBY_PLATFORM == 'java' || version < 2.1 task default: [:features, 'coveralls:push', :rubocop] elsif version > 2.0 desc 'Run lint check Reek' require 'reek/rake/task' Reek::Rake::Task.new(:lint) do |t| t.name = 'reek' t.config_file = 'config/config.reek' t.source_files = 'lib/**/*.rb' t.reek_opts = '-U' t.fail_on_error = true t.verbose = true end task default: [:features, 'coveralls:push', :rubocop, :reek] else desc 'Documentation' require 'yard' YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb', 'features/**/*.feature', 'features/**/*.rb'] end # regular ruby default rake task task default: [:features, 'coveralls:push', :rubocop, :reek] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rest_baby-1.6.0 | Rakefile |