1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/gem_rake_helper.rb

42 lines
950 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'rake'
2012-05-02 14:13:06 -04:00
require 'yard'
2012-01-05 23:34:24 -05:00
2013-05-01 13:16:46 -04:00
require 'bundler/gem_tasks'
# Skip the releasing tag
class Bundler::GemHelper
2013-05-01 13:16:46 -04:00
def release_gem(*args)
p args
guard_clean
built_gem_path = build_gem
rubygem_push(built_gem_path)
end
end
require 'cucumber/rake/task'
Cucumber::Rake::Task.new do |t|
exempt_tags = ["--tags 'not @wip'"]
t.cucumber_opts = "--fail-fast --require features --color #{exempt_tags.join(' ')} --strict"
end
Cucumber::Rake::Task.new(:cucumber_wip) do |t|
exempt_tags = ['--tags @wip']
t.cucumber_opts = "--fail-fast --require features --color #{exempt_tags.join(' ')} --strict"
end
require 'rspec/core/rake_task'
desc 'Run RSpec'
RSpec::Core::RakeTask.new do |spec|
spec.pattern = 'spec/**/*_spec.rb'
2014-07-03 15:13:22 -04:00
spec.rspec_opts = ['--color', '--format documentation']
end
desc 'Run tests, both RSpec and Cucumber'
task test: %i[spec cucumber]
2012-05-02 14:13:06 -04:00
YARD::Rake::YardocTask.new
2011-12-29 22:57:02 -05:00
2014-04-29 13:44:24 -04:00
task default: :test