mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-18 12:52:29 +03:00
24 lines
382 B
Ruby
24 lines
382 B
Ruby
task default: %w[encoding yaml return_code]
|
|
$failure = 0
|
|
task :encoding do
|
|
begin
|
|
ruby 'tests/encoding.rb'
|
|
rescue Exception => msg
|
|
puts msg
|
|
$failure += 1
|
|
end
|
|
end
|
|
task :yaml do
|
|
begin
|
|
ruby 'tests/yaml.rb'
|
|
rescue Exception => msg
|
|
puts msg
|
|
$failure += 1
|
|
end
|
|
end
|
|
task :return_code do
|
|
if $failure != 0
|
|
raise "Failed #{$failure} tests!!"
|
|
end
|
|
end
|