forked from cbeer/is_it_working
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
21 lines (18 loc) · 813 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'bundler/gem_tasks'
require 'bundler/setup' # constrain rake version
# Note: if you get this error: "Bundler could not find compatible versions for gem ..."
# try deleting Gemfile.lock (usually happens when switching branches).
task default: :appraise_all
# This is slightly different from 'appraisal COMMAND' because it continues even if a definition fails.
desc "Run rspecs for all appraisals"
task :appraise_all do
success_map = {}
`bundle exec appraisal list`.lines.map(&:chomp).each do |appraise_def|
success = system('appraisal', appraise_def, 'rspec', 'spec')
success_map[appraise_def] = success
end
puts "\n===== Test Summary ====="
success_map.each do |appraise_def, success|
puts "#{appraise_def}: #{success ? 'no failures (but check pending)' : 'failed'}"
end
end