Created
September 3, 2009 18:08
-
-
Save holman/180428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :ci do | |
task :enqueue do | |
sleep 60 while FileTest.exists?('tmp/currently_running_tests') | |
`touch tmp/currently_running_tests` | |
end | |
task :dequeue do | |
`rm tmp/currently_running_tests` | |
end | |
task :throw_error => :dequeue do | |
raise "Tests failed." | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment