Skip to content

Commit

Permalink
🔬🚥 Chrome Headless & yarn (fixes noref) (#159)
Browse files Browse the repository at this point in the history
- Karma tests are run with Chrome & Canary Headless
- CI uses yarn to install deps
  • Loading branch information
SpainTrain authored Jun 24, 2017
1 parent c7cd124 commit 57d3cd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@ machine:
dependencies:
pre:
- uname -a && . /etc/lsb-release && echo $DISTRIB_DESCRIPTION
- npm i -g npm@^4
- npm i -g npm@^5
- npm -v
- npm i -g yarn
- rm -rf ~/.yarn
override:
- bundle install
- yarn install --no-lockfile
post:
# Chrome 53 / Karma issue
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- sudo apt-get update
- sudo apt-get install -y google-chrome-unstable
- sudo apt-get install -y --only-upgrade google-chrome-stable

test:
Expand Down
3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

const webpack = require('webpack')

const isCI = !!process.env.CI

module.exports = function(config) {
config.set({
browsers: isCI ? ['Firefox'] : ['Chrome', 'Firefox'],
browsers: ['ChromeHeadless', 'ChromeCanaryHeadless', 'Firefox'],

files: [
'./src/*.test.js',
Expand Down

0 comments on commit 57d3cd7

Please sign in to comment.