diff --git a/.travis.yml b/.travis.yml index 04da628c38..f5d23c68a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,6 +85,7 @@ before_install: - "export DISPLAY=:99.0" - "/sbin/start-stop-daemon --start -v --pidfile ./tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1920x1080x16" - "echo `xdpyinfo -display :99 | grep 'dimensions' | awk '{ print $2 }'`" + - nvm install v0.12.9 - travis_retry npm install # We need phantomjs 2.0 to get tests passing diff --git a/frontend/package.json b/frontend/package.json index d32fd8943d..8fd8f6f158 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -56,7 +56,8 @@ "yaml-loader": "^0.1.0" }, "scripts": { - "test": "npm run webpack && npm run karma", + "pretest": "npm run webpack", + "test": "npm run karma", "karma": "./scripts/karma-runner.js", "postinstall": "./node_modules/.bin/bower install --config.interactive=false", "webpack": "./node_modules/.bin/webpack --colors --progress",