-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (22 loc) · 700 Bytes
/
Copy pathRakefile
File metadata and controls
29 lines (22 loc) · 700 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
28
29
# frozen_string_literal: true
require 'bundler/setup'
require 'rspec/core/rake_task'
require 'capybara/apparition/version'
RSpec::Core::RakeTask.new(:no_cw) do |t|
t.exclude_pattern = './spec/capybara-webkit/*_spec.rb'
end
RSpec::Core::RakeTask.new(:cw) do |t|
t.pattern = './spec/capybara-webkit/*_spec.rb'
end
RSpec::Core::RakeTask.new('test')
RSpec::Core::RakeTask.new('all')
task default: %i[no_cw]
task :release do
version = Capybara::Apparition::VERSION
puts "Releasing #{version}, y/n?"
exit(1) unless STDIN.gets.chomp == 'y'
sh 'gem build apparition.gemspec && ' \
"gem push apparition-#{version}.gem && " \
"git tag v#{version} && " \
'git push --tags'
end