2014-01-27 21:28:21 -05:00
|
|
|
language: node_js
|
2014-01-12 14:10:36 -05:00
|
|
|
node_js:
|
|
|
|
- 0.10
|
2014-01-27 21:32:56 -05:00
|
|
|
|
2014-06-09 20:04:51 -04:00
|
|
|
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"
|
2015-05-20 20:22:29 -04:00
|
|
|
|
2014-01-12 14:10:36 -05:00
|
|
|
before_script:
|
2014-01-12 14:15:40 -05:00
|
|
|
- "npm install"
|
2014-01-12 14:10:36 -05:00
|
|
|
- export DISPLAY=:99.0
|
2014-12-12 14:36:41 -05:00
|
|
|
- export COCO_TRAVIS_TEST=1
|
2014-01-12 14:10:36 -05:00
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- "./node_modules/.bin/bower install"
|
|
|
|
- "gem install sass"
|
|
|
|
- "./node_modules/.bin/brunch b"
|
2014-06-11 13:06:28 -04:00
|
|
|
- "mkdir mongo"
|
|
|
|
- "mongod --dbpath=./mongo --fork --logpath ./mongodb.log"
|
2014-06-09 18:07:39 -04:00
|
|
|
- "node index.js --unittest &"
|
2014-06-12 16:35:39 -04:00
|
|
|
- "sleep 10" # to give node a chance to start
|
2014-01-27 21:32:56 -05:00
|
|
|
|
2014-01-12 14:10:36 -05:00
|
|
|
script:
|
2014-06-09 18:07:39 -04:00
|
|
|
- "./node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --captureExceptions"
|
2015-05-20 20:22:29 -04:00
|
|
|
# - "./node_modules/karma/bin/karma start --browsers Firefox --single-run"
|