Commit 1c1a36a4 by clytwynec

Merge pull request #3525 from edx/clytwynec/update-bok-choy-setup-tasks-prereqs

Update to bok-choy setup task prereqs
parents 71b32663 b69ae300
......@@ -174,23 +174,32 @@ end
namespace :'test:bok_choy' do
# Check that required services are running
task :check_services do
# Check that mongo is running
task :check_mongo do
if not is_mongo_running()
fail("Mongo is not running locally.")
end
end
# Check that memcache is running
task :check_memcache do
if not is_memcache_running()
fail("Memcache is not running locally.")
end
end
# Check that mysql is running
task :check_mysql do
if not is_mysql_running()
fail("MySQL is not running locally.")
end
end
# Check that all required services are running
task :check_services => [:check_mongo, :check_memcache, :check_mysql]
desc "Process assets and set up database for bok-choy tests"
task :setup => [:check_services, :install_prereqs, BOK_CHOY_LOG_DIR] do
task :setup => [:check_mysql, :install_prereqs, BOK_CHOY_LOG_DIR] do
# Reset the database
sh("#{REPO_ROOT}/scripts/reset-test-db.sh")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment