Skip to content

Instantly share code, notes, and snippets.

@holman
Created September 3, 2009 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save holman/180428 to your computer and use it in GitHub Desktop.
Save holman/180428 to your computer and use it in GitHub Desktop.
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