Skip to content

Commit

Permalink
ci(travis): add '--no-sandbox' to travis chrome instance
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Mar 29, 2016
1 parent ee401f9 commit 350d1a2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 13 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ node_js:
- '5.4.1'

env:
global:
- CXX=g++-4.8
- KARMA_JS_BROWSERS=ChromeNoSandbox
- E2E_BROWSERS=ChromeOnTravis
- CXX=g++-4.8

cache:
directories:
Expand Down
59 changes: 50 additions & 9 deletions protractor.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var settings = require('./src/server/settings').settings;
var helpers = require('./helpers');

exports.config = {
var configuration = {
baseUrl: 'http://' + (settings.httpServer.host || 'localhost') + ':' + (settings.httpServer.port || 8080),

specs: [
Expand All @@ -22,17 +22,58 @@ exports.config = {
},
directConnect: true,

capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['show-fps-counter=true']
}
},

onPrepare: function() {
browser.ignoreSynchronization = true;
},

seleniumServerJar: "node_modules/protractor/selenium/selenium-server-standalone-2.52.0.jar",
useAllAngular2AppRoots: true
useAllAngular2AppRoots: true
};


var BROWSER_CAPS = {
ChromeDesktop: {
browserName: 'chrome',
chromeOptions: {
args: ['show-fps-counter=true', '--js-flags=--expose-gc'],
perfLoggingPrefs: {
'traceCategories': 'v8,blink.console,devtools.timeline,disabled-by-default-devtools.timeline'
}
},
loggingPrefs: {
performance: 'ALL',
browser: 'ALL'
}
},
ChromeOnTravis: {
browserName: 'chrome',
chromeOptions: {
args: ['show-fps-counter=true', '--no-sandbox', '--js-flags=--expose-gc'],
perfLoggingPrefs: {
'traceCategories': 'v8,blink.console,devtools.timeline,disabled-by-default-devtools.timeline'
},
binary: process.env.CHROME_BIN
},
loggingPrefs: {
performance: 'ALL',
browser: 'ALL'
}
},
Firefox: {
browserName: 'firefox'
}
};

if (process.env.TRAVIS) {
configuration.multiCapabilities = [
BROWSER_CAPS.ChromeOnTravis
];
} else {
configuration.multiCapabilities = [
BROWSER_CAPS.ChromeDesktop
];
}

// configuration.multiCapabilities.push(BROWSER_CAPS.Firefox);

exports.config = configuration;

0 comments on commit 350d1a2

Please sign in to comment.