-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (21 loc) · 709 Bytes
/
Rakefile
File metadata and controls
27 lines (21 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true
require 'bundler'
require 'bundler/setup'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
%w[flatware flatware-rspec flatware-cucumber].each do |gem_name|
Bundler::GemHelper.install_tasks name: gem_name
end
RSpec::Core::RakeTask.new :spec do |task|
task.pattern = FileList['spec/**/*_spec.rb']
task.rspec_opts = %w[-f doc] if ENV['TRAVIS']
task.verbose = false
end
RuboCop::RakeTask.new :lint
Cucumber::Rake::Task.new :cucumber do |task|
task.cucumber_opts = ['--tags', 'not @wip', '--publish-quiet']
task.cucumber_opts += %w[-f progress] unless ENV['TRAVIS']
task.fork = false
end
task default: %i[lint spec cucumber]