Skip to content

Instantly share code, notes, and snippets.

@thorncp
Last active December 24, 2015 17:09
Show Gist options
  • Save thorncp/6833096 to your computer and use it in GitHub Desktop.
Save thorncp/6833096 to your computer and use it in GitHub Desktop.
Rake dependency on task in global namespace
task :test do
puts "run tests"
end
namespace :build do
task :dev do
puts "build dev"
end
task :test do
puts "build test"
end
end
namespace :ci do
# "test" here would invoke "ci:test". "rake:test" forces the global task
task :dev => ["build:dev", "rake:test"]
task :test => ["build:test"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment