mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-08-03 21:49:44 +02:00
adding protractor options to fix travis failing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user