diff --git a/.travis.yml b/.travis.yml index 00c58228..f1897fbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,14 @@ --- +sudo: required +dist: trusty language: node_js node_js: - "4" -sudo: false - cache: directories: - node_modules + - bower_components env: - EMBER_TRY_SCENARIO=default @@ -22,9 +23,16 @@ matrix: - env: EMBER_TRY_SCENARIO=ember-canary before_install: + - export CHROME_BIN=google-chrome + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + - sudo apt-get update + - sudo apt-get install -y libappindicator1 fonts-liberation + - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + - sudo dpkg -i google-chrome*.deb - npm config set spin false - npm install -g bower - - npm install phantomjs-prebuilt + - bower --version install: - npm install diff --git a/testem.js b/testem.js index 8c56a4a5..7fdb3e27 100644 --- a/testem.js +++ b/testem.js @@ -9,5 +9,32 @@ module.exports = { "launch_in_dev": [ "PhantomJS", "Chrome" - ] + ], + launch_in_ci: [ + 'Chrome Custom', + ], + launch_in_dev: [ + 'Chrome Custom', + ], + launchers: { + 'Chrome Custom': { + exe: [ + 'google-chrome', + '~/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', + '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', + ], + args: [ + '--user-data-dir=/tmp/testem.chrome.custom', + '--no-default-browser-check', + '--no-first-run', + '--ignore-certificate-errors', + '--test-type', + '--disable-extensions', + '--disable-web-security', + '--disable-renderer-backgrounding', + '--disable-background-timer-throttling', + ], + protocol: 'browser', + }, + }, };