Skip to content

Commit

Permalink
Merge pull request #7566 from Turbo87/no-sandbox
Browse files Browse the repository at this point in the history
testem: Use `--no-sandbox` on TravisCI
  • Loading branch information
rwjblue committed Jan 21, 2018
2 parents d3d90a7 + 92774e7 commit 24aeacc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion blueprints/app/files/testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ module.exports = {
Chrome: {
mode: 'ci',
args: [
// --no-sandbox is needed when running Chrome inside a container
process.env.TRAVIS ? '--no-sandbox' : null,

'--disable-gpu',
'--headless',
'--remote-debugging-port=0',
'--window-size=1440,900'
]
].filter(Boolean)
}
}
};
2 changes: 1 addition & 1 deletion tests/acceptance/smoke-test-slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('Acceptance: smoke-test', function() {
output = output.join(EOL);

expect(output).to.match(/fail\s+0/, 'no failures');
expect(output).to.match(/pass\s+11/, '11 passing');
expect(output).to.match(/pass\s+12/, '12 passing');
}));

it('ember new foo, build development, and verify generated files', co.wrap(function *() {
Expand Down
5 changes: 4 additions & 1 deletion tests/fixtures/smoke-tests/js-testem-config/testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ module.exports = {
],
"browser_args": {
"Chrome": [
// --no-sandbox is needed when running Chrome inside a container
process.env.TRAVIS ? '--no-sandbox' : null,

"--disable-gpu",
"--headless",
"--remote-debugging-port=0",
"--window-size=1440,900"
],
].filter(Boolean),
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"browser_args": {
"Chrome": [
"--no-sandbox",
"--disable-gpu",
"--headless",
"--remote-debugging-port=0",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/tasks/testem-config/testem.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
],
"browser_args": {
"Chrome": [
"--no-sandbox",
"--disable-gpu",
"--headless",
"--remote-debugging-port=0",
Expand Down

0 comments on commit 24aeacc

Please sign in to comment.