Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (43 sloc) 1.272 kB
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../cloud_controller/Gemfile", __FILE__)
require 'rake'
desc "Run specs"
# TODO - Add back in 'prepare_test_db' when tests are re-enabled
task "spec" => ["bundler:install:test","test:spec"]
# FIXME - This does not honor the test db set in
# config/health_manager.yml
# TODO HACK FAIL
task "prepare_test_db" do
ENV['RAILS_ENV'] = 'test'
cc_root = File.expand_path("../../cloud_controller", __FILE__)
Dir.chdir(cc_root) do
ruby "-S rake RAILS_ENV=test db:migrate >/dev/null 2>/dev/null"
end
end
desc "Run specs using RCov"
task "spec:rcov" => ["bundler:install:test", "test:spec:rcov"]
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.