mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-17 19:12:33 -05:00
954bc8df33
* Use the container based infrastructure * Don't attempt to npm install twice (though there was no effect)
35 lines
737 B
YAML
35 lines
737 B
YAML
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:
|
|
- npm install -g npm@latest
|
|
|
|
before_script:
|
|
- 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"
|
|
- "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"
|