Attempting to get TravisCI set up to run server tests.

This commit is contained in:
Scott Erickson 2014-06-09 15:07:39 -07:00
parent 693da57f13
commit 3a8b01b058
2 changed files with 6 additions and 1 deletions

View file

@ -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"

View file

@ -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)