Skip to content

Commit

Permalink
Refactoring for Rakefile to display cucumber task by "rake -T".
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Mar 1, 2017
1 parent 057c3dc commit 43af4f6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Dir['gem_tasks/**/*.rake'].each { |rake| load rake }
require 'rubocop/rake_task'
RuboCop::RakeTask.new

task :default => [:spec, :rubocop, :cucumber]
require 'cucumber/rake/task'
Cucumber::Rake::Task.new

default_tasks = [:spec, :rubocop, :cucumber]

if ENV['TRAVIS']
ENV['SIMPLECOV'] = 'ci'
Expand All @@ -18,8 +21,10 @@ if ENV['TRAVIS']
require 'coveralls/rake/task'
Coveralls::RakeTask.new

task :default => [:spec, :rubocop, :cucumber, 'coveralls:push']
default_tasks << 'coveralls:push'
end

task :default => default_tasks

require 'rake/clean'
CLEAN.include %w(**/*.{log,pyc,rbc,tgz} doc)

0 comments on commit 43af4f6

Please sign in to comment.