Skip to content

Commit

Permalink
[testing] Use Chrome, not PhantomJS
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Singh committed Aug 15, 2016
1 parent 9b0be62 commit d64e9fe
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ language: node_js
node_js:
- "4"

before_install:
- curl -L -o google-chrome.deb https://s3.amazonaws.com/circle-downloads/google-chrome-stable_current_amd64_47.0.2526.73-1.deb
- sudo dpkg -i google-chrome.deb
- sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
- rm google-chrome.deb

sudo: false

cache:
directories:
- node_modules
- bower_components

env:
- EMBER_TRY_SCENARIO=default
Expand All @@ -24,7 +31,6 @@ matrix:
before_install:
- npm config set spin false
- npm install -g bower
- npm install phantomjs-prebuilt

install:
- npm install
Expand Down
29 changes: 28 additions & 1 deletion testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},
};

0 comments on commit d64e9fe

Please sign in to comment.