Skip to content

Commit

Permalink
Use chrome in testing (#2083)
Browse files Browse the repository at this point in the history
* chore: switch to chrome testing

* test: relax pixel assertions to pass in chrome

* chore: add codecov.yml
  • Loading branch information
kt3k authored Jun 17, 2017
1 parent b468888 commit c343243
Show file tree
Hide file tree
Showing 8 changed files with 2,660 additions and 1,438 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
sudo: false
language: node_js
node_js:
- 6
dist: trusty
sudo: false
addons:
apt:
packages:
- google-chrome-stable

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3

after_success:
- npm run codecov
Expand Down
9 changes: 9 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
machine:
node:
verison: 6
dependencies:
pre:
- curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.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
7 changes: 7 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage:
status:
project:
default:
threshold: 0.4
patch: no
change: no
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function(config) {
reports: ['html', 'lcovonly', 'text-summary']
},
autoWatch: true,
browsers: ['PhantomJS'],
browsers: ['Chrome'],
singleRun: true,
browserNoActivityTimeout: 120000,
})
Expand Down
Loading

0 comments on commit c343243

Please sign in to comment.