From b712c4341bf2a605f67c383025de8642ab6bc635 Mon Sep 17 00:00:00 2001 From: Kevin Manson Date: Tue, 13 Feb 2018 16:39:59 -0500 Subject: [PATCH 1/2] chore(tests): use headless browser for tests --- karma.conf.js | 4 +++- package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 89c684ca3..8b302d938 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,3 +1,5 @@ +process.env.CHROME_BIN = require('puppeteer').executablePath(); + module.exports = function(config) { config.set({ @@ -40,7 +42,7 @@ module.exports = function(config) { // - Safari (only Mac) // - PhantomJS // - IE (only Windows) - browsers: [process.env.TRAVIS ? 'Firefox' : 'Chrome'], + browsers: [process.env.TRAVIS ? 'Firefox' : 'ChromeHeadless'], // Continuous Integration mode // if true, it capture browsers, run tests and exit diff --git a/package.json b/package.json index 83f3b99a9..d7c306628 100644 --- a/package.json +++ b/package.json @@ -39,12 +39,13 @@ "jshint": "^2.9.1", "jshint-stylish": "~0.3.0", "karma": "^0.12.16", - "karma-chrome-launcher": "^0.1.3", + "karma-chrome-launcher": "^2.2.0", "karma-coverage": "~0.2", "karma-firefox-launcher": "~1.0", "karma-jasmine": "~0.2", "karma-ng-html2js-preprocessor": "^0.1.0", "karma-phantomjs-launcher": "~0.1.4", + "puppeteer": "^1.0.0", "run-sequence": "^1.1.5", "streamqueue": "^1.1.1", "title-case": "^1.1.2" From 5eaf013fcddd9acffc21b5c2ce13b0b22a32bbf6 Mon Sep 17 00:00:00 2001 From: Kevin Manson Date: Wed, 14 Feb 2018 09:34:52 -0500 Subject: [PATCH 2/2] chore(ci): use Node 6.13 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b6270754a..7960477bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - "5.9" + - "6.13" env: global: - CXX=g++-4.8