Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-06-09 21:12:12 -07:00
commit 6703f7a1fc
3 changed files with 21 additions and 12 deletions

View file

@ -2,6 +2,12 @@ language: node_js
node_js: node_js:
- 0.10 - 0.10
before_install:
- "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10"
- "echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list"
- "sudo apt-get update"
- "sudo apt-get install mongodb-org-server"
before_script: before_script:
- "npm install" - "npm install"
- export DISPLAY=:99.0 - export DISPLAY=:99.0
@ -9,7 +15,9 @@ before_script:
- "./node_modules/.bin/bower install" - "./node_modules/.bin/bower install"
- "gem install sass" - "gem install sass"
- "./node_modules/.bin/brunch b" - "./node_modules/.bin/brunch b"
- "./bin/coco-mongodb fork"
- "node index.js --unittest &"
script: script:
- "./node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --captureExceptions"
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run" - "./node_modules/karma/bin/karma start --browsers Firefox --single-run"

View file

@ -211,14 +211,21 @@ module.exports = class PlayView extends View
difficulty: 3 difficulty: 3
id: 'bubble-sort-bootcamp-battle' id: 'bubble-sort-bootcamp-battle'
image: '/file/db/level/525ef8ef06e1ab0962000003/commanding_followers_icon.png' image: '/file/db/level/525ef8ef06e1ab0962000003/commanding_followers_icon.png'
description: "Write a bubble sort to organize your soldiers. - by Alexandru" description: "Write a bubble sort to organize your soldiers. - by Alexandru Caciulescu"
} }
{ {
name: 'Ogres of Hanoi' name: 'Ogres of Hanoi'
difficulty: 3 difficulty: 3
id: 'ogres-of-hanoi' id: 'ogres-of-hanoi'
image: '/file/db/level/526fd3043c637ece50001bb2/the_herd_icon.png' image: '/file/db/level/526fd3043c637ece50001bb2/the_herd_icon.png'
description: "Transfer a stack of ogres while preserving their honor. - by Alexandru" description: "Transfer a stack of ogres while preserving their honor. - by Alexandru Caciulescu"
}
{
name: 'Danger! Minefield'
difficulty: 3
id: 'danger-minefield'
image: '/file/db/level/526bda3fe79aefde2a003e36/mobile_artillery_icon.png'
description: "Learn how to find prime numbers while defusing mines! - by Alexandru Caciulescu"
} }
{ {
name: 'Find the Spy' name: 'Find the Spy'
@ -234,15 +241,6 @@ module.exports = class PlayView extends View
image: '/file/db/level/529662dfe0df8f0000000007/grab_the_mushroom_icon.png' image: '/file/db/level/529662dfe0df8f0000000007/grab_the_mushroom_icon.png'
description: "Collect a hundred mushrooms in just five lines of code - by Nathan Gossett" description: "Collect a hundred mushrooms in just five lines of code - by Nathan Gossett"
} }
#{
# name: 'Enemy Artillery'
# difficulty: 1
# id: 'enemy-artillery'
# image: '/file/db/level/526dba94a188322044000a40/mobile_artillery_icon.png'
# description: "Take cover while shells fly, then strike! - by mcdavid1991"
# disabled: true
#}
] ]
context.campaigns = [ context.campaigns = [

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): if not os.path.exists(mongo_db_path):
os.mkdir(mongo_db_path) os.mkdir(mongo_db_path)
mongo_arguments = [mongo_executable + u" --setParameter textSearchEnabled=true --dbpath=" + 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) call(mongo_arguments,shell=True)