mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Attempting to get TravisCI set up to run server tests.
This commit is contained in:
parent
693da57f13
commit
3a8b01b058
2 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,9 @@ before_script:
|
|||
- "./node_modules/.bin/bower install"
|
||||
- "gem install sass"
|
||||
- "./node_modules/.bin/brunch b"
|
||||
- "./bin/coco-mongodb fork"
|
||||
- "node index.js --unittest &"
|
||||
|
||||
script:
|
||||
- "./node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --captureExceptions"
|
||||
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run"
|
||||
|
||||
|
|
|
@ -88,5 +88,8 @@ mongo_db_path = os.path.abspath(os.path.join(current_directory,os.pardir)) + os.
|
|||
if not os.path.exists(mongo_db_path):
|
||||
os.mkdir(mongo_db_path)
|
||||
mongo_arguments = [mongo_executable + u" --setParameter textSearchEnabled=true --dbpath=" + mongo_db_path]
|
||||
|
||||
if 'fork' in sys.argv: mongo_arguments[0] += " --fork --logpath ./mongodb.log"
|
||||
|
||||
call(mongo_arguments,shell=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue