adding protractor options to fix travis failing

This commit is contained in:
jloveland
2015-10-05 16:06:54 -04:00
parent 7a9ee53357
commit 83eb2dc233
2 changed files with 15 additions and 1 deletions

View File

@@ -15,6 +15,12 @@ before_install:
- gem update --system
- gem install sass --version "=3.3.7"
- npm i nsp -g
- npm install protractor
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- 'node_modules/protractor/bin/webdriver-manager update --standalone --firefox'
- 'node_modules/protractor/bin/webdriver-manager start 2>&1 &'
- sleep 3
after_script:
- nsp audit-package
- grunt coverage

View File

@@ -1,6 +1,14 @@
'use strict';
// Protractor configuration
exports.config = {
var config = {
specs: ['modules/*/tests/e2e/*.js']
};
if (process.env.TRAVIS) {
config.capabilities = {
browserName: 'firefox'
};
}
exports.config = config;