Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (45 sloc) 1.298 kb
require 'rake'
desc "Run specs"
task "spec" => ["bundler:install:test", "test:spec"]
desc "Run specs in CI mode"
# FIXME - Router specs currently fail on some platforms if they
# share a bundle directory with the rest of the core.
# Some kind of tricky interaction around the --without flag?
task "ci" do
sh("BUNDLE_PATH=$HOME/.vcap_router_gems bundle install --without production")
Dir.chdir("spec") do
sh("BUNDLE_PATH=$HOME/.vcap_router_gems bundle exec rake spec")
end
end
desc "Run specs using RCov"
task "spec:rcov" => ["bundler:install:test", "test:spec:rcov"]
desc "Synonym for spec"
task :test => :spec
desc "Synonym for spec"
task :tests => :spec
namespace "bundler" do
desc "Install gems"
task "install" do
sh("bundle install")
end
desc "Install gems for test"
task "install:test" do
sh("bundle install --without development production")
end
desc "Install gems for production"
task "install:production" do
sh("bundle install --without development test")
end
desc "Install gems for development"
task "install:development" do
sh("bundle install --without test production")
end
end
namespace "test" do
task "spec" do |t|
sh("cd spec && rake spec")
end
task "spec:rcov" do |t|
sh("cd spec && rake spec:rcov")
end
end
Jump to Line
Something went wrong with that request. Please try again.