Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

More params for headless chrome #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ language: node_js
node_js:
- "6"

sudo: required
dist: trusty
#sudo: required
#dist: trusty

cache:
yarn: true
Expand All @@ -15,6 +15,13 @@ addons:
- google-chrome
packages:
- google-chrome-stable
- libnss3
- libnss3-tools
- libfontconfig1
- wget
- ca-certificates
- apt-transport-https
- inotify-tools

env:
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
Expand All @@ -31,8 +38,6 @@ matrix:
- env: EMBER_TRY_SCENARIO=ember-canary

before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

Expand Down
15 changes: 12 additions & 3 deletions testem.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ module.exports = {
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"launch_in_ci": [
"PhantomJS"
"Chrome"
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
],
"browser_args": {
"Chrome": [
"--headless",
"--disable-gpu",
"--remote-debugging-port=9222",
"--remote-debugging-address=0.0.0.0",
"--no-sandbox",
"--user-data-dir=/tmp"
]
}
};