Update Travis CI config

* Use the container based infrastructure
* Don't attempt to npm install twice (though there was no effect)
This commit is contained in:
David Liu 2015-08-31 17:44:04 -07:00
parent 3266bd4621
commit 954bc8df33

View file

@ -1,26 +1,35 @@
sudo: false
language: node_js
node_js:
- 0.10
addons:
apt:
sources:
- mongodb-upstart
packages:
- mongodb-org-server
cache:
directories:
- node_modules
- bower_components
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"
- npm install -g npm@latest
before_script:
- "npm install"
- export DISPLAY=:99.0
- export COCO_TRAVIS_TEST=1
- sh -e /etc/init.d/xvfb start
- "./node_modules/.bin/bower install"
- "gem install sass"
- "./node_modules/.bin/brunch b"
- "mkdir mongo"
- "mongod --dbpath=./mongo --fork --logpath ./mongodb.log"
- "node index.js --unittest &"
- "sleep 10" # to give node a chance to start
script:
- "./node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --captureExceptions"
# - "./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters progress"
- "./node_modules/karma/bin/karma start --browsers Firefox --single-run --reporters progress"