Skip to content

Commit

Permalink
replace phantom js with headless chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmakes committed Jan 4, 2018
1 parent 6427d52 commit f5a8391
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,5 +1,8 @@
language: node_js
dist: trusty
node_js:
- '6'
- '9'
addons:
chrome: stable
after_success:
- npm run coverage
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,11 +26,11 @@
"chai": "^3.5.0",
"eslint": "^3.11.0",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-coveralls": "^1.1.2",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-rollup-preprocessor": "^5.0.1",
"karma-sauce-launcher": "^1.1.0",
"karma-sinon-chai": "^1.2.4",
Expand Down
6 changes: 2 additions & 4 deletions test/karma.conf.js
@@ -1,5 +1,3 @@
process.env.PHANTOMJS_BIN = './node_modules/phantomjs-prebuilt/bin/phantomjs'

const rollupPlugins = [require('rollup-plugin-buble')()]

if (!process.env.TRAVIS || process.env.COVERAGE) {
Expand Down Expand Up @@ -45,7 +43,7 @@ module.exports = function(karma) {
if (process.env.COVERAGE) {
karma.set({
autoWatch: false,
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
coverageReporter: {
type: 'lcovonly',
dir: 'coverage/'
Expand Down Expand Up @@ -73,7 +71,7 @@ module.exports = function(karma) {
}
} else {
karma.set({
browsers: ['PhantomJS'],
browsers: ['ChromeHeadless'],
coverageReporter: {
type: 'lcov',
dir: '../.ignore/coverage/'
Expand Down

0 comments on commit f5a8391

Please sign in to comment.