Merge pull request #4818 from lejeunerenard/fix-tests

Fixed MongoDB service and added Karma tests to Travis-CI
This commit is contained in:
Blade Barringer 2015-03-07 16:50:50 -06:00
commit 1f8ccf1f65
3 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,7 @@
language: node_js
node_js:
- '0.10'
services:
- mongodb
before_script:
- 'npm install -g grunt-cli mocha'

View file

@ -94,7 +94,7 @@ module.exports = function(config) {
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['Firefox'],
browsers: ['PhantomJS'],
// Continuous Integration mode

View file

@ -37,5 +37,7 @@ trap "kill $NODE_PID" EXIT
NODE_ENV=testing mocha || exit $?
if [ -z "$TRAVIS" ]; then
NODE_ENV=testing grunt karma:continuous && ./node_modules/protractor/bin/protractor protractor.conf.js || exit $?
NODE_ENV=testing ./node_modules/protractor/bin/protractor protractor.conf.js || exit $?
fi
NODE_ENV=testing grunt karma:continuous