Skip to content

Commit

Permalink
chore(ci): use chrome at travis (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic authored Aug 31, 2017
1 parent b47f6d9 commit c33b804
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 22 deletions.
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@ node_js:
- "6"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
directories:
- node_modules
- $HOME/.yarn-cache
yarn: true

before_install:
- npm config set spin false
- npm install -g yarn

install:
- yarn
- npm install phantomjs-prebuilt
- node_modules/phantomjs-prebuilt/bin/phantomjs --version
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
- export PATH=$HOME/.yarn/bin:$PATH

script:
- npm run test:ci
- yarn test:ci

env:
- SAUCE_USERNAME=mobiledoc-kit SAUCE_ACCESS_KEY=f9cad21d-1141-452d-8f64-c6ba3f43faa6
14 changes: 9 additions & 5 deletions testem-ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@
}
},
"launch_in_ci": [
"PhantomJS",
"Chrome",
"SL_Firefox_Current",
"SL_Chrome_Current",
"SL_Safari_Current",
"SL_MS_Edge",
"SL_IE_11"
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
"browser_args": {
"Chrome": [
"--disable-gpu",
"--headless",
"--remote-debugging-port=9222",
"--window-size=1440,900"
]
}
}
16 changes: 10 additions & 6 deletions testem.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"framework": "qunit",
"test_page": "dist/tests/index.html",
"test_page": "dist/tests/index.html?hidepassed",
"src_files": [
"tests/**/*.js",
"src/**/*.js"
],
"launch_in_ci": [
"PhantomJS"
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
],
"browser_args": {
"Chrome": [
"--disable-gpu",
"--headless",
"--remote-debugging-port=9222",
"--window-size=1440,900"
]
}
}

0 comments on commit c33b804

Please sign in to comment.