diff --git a/.travis.yml b/.travis.yml index f8517efb..3ca0a710 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,6 @@ cache: before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH - - yarn global add phantomjs-prebuilt - - phantomjs --version install: - yarn install --ignore-engines --no-lockfile --non-interactive diff --git a/testem.js b/testem.js index b2340483..8b10dad9 100644 --- a/testem.js +++ b/testem.js @@ -3,10 +3,24 @@ module.exports = { "test_page": "tests/index.html?hidepassed", "disable_watching": true, "launch_in_ci": [ - "PhantomJS" + "Chrome" ], "launch_in_dev": [ - "PhantomJS", "Chrome" - ] + ], + browser_args: { + Chrome: { + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-gpu', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } + } };