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 8ba5eb6 commit 5850271
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
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 5850271

Please sign in to comment.