diff --git a/.travis.yml b/.travis.yml index e8599529..0ad75c32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ node_js: - "6" - "4" -sudo: required dist: trusty addons: diff --git a/testem.js b/testem.js index 269f942e..028b4f35 100644 --- a/testem.js +++ b/testem.js @@ -14,11 +14,14 @@ module.exports = { Chrome: { mode: 'ci', args: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.TRAVIS ? '--no-sandbox' : null, + '--headless', '--window-size=1440,900', '--disable-gpu', '--remote-debugging-port=9222' - ] + ].filter(Boolean) } } };