Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b69ae300
Commit
b69ae300
authored
Apr 30, 2014
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated test:bok-choy:setup task to not require that memchache or mongo be running
parent
c5ef1255
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
rakelib/bok_choy.rake
+12
-3
No files found.
rakelib/bok_choy.rake
View file @
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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment