exit if RETRY is false

This commit is contained in:
Rimian Perkins 2016-06-14 14:17:39 +10:00
parent ad15c4ac78
commit ccb5eed717

View file

@ -52,6 +52,7 @@ task "qunit:test" => :environment do
begin
sh(cmd)
rescue
exit if ENV['RETRY'].present? && ENV['RETRY'] == 'false'
sleep 2
tries += 1
retry unless tries == 10