diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dcb0212 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: node_js +node_js: + - "6" + +# before_script: +# - npm run build diff --git a/karma.conf.js b/karma.conf.js index 7fa8e16..4d3bc60 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,7 +1,8 @@ // Karma configuration -// Generated on Thu Jan 19 2017 11:27:12 GMT+0100 (Paris, Madrid) const webpackConfig = require('./webpack.config') +process.env.CHROME_BIN = require('puppeteer').executablePath() + // explained at http://mike-ward.net/2015/09/07/tips-on-setting-up-karma-testing-with-webpack/ webpackConfig.entry = '' @@ -54,7 +55,7 @@ module.exports = function (config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['Chrome'], + browsers: [process.env.NODE_WATCH ? 'Chrome' : 'ChromeHeadless'], // browsers: ['Chrome', 'Firefox', 'PhantomJS'], // Continuous Integration mode diff --git a/package.json b/package.json index 57db02b..0504852 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,7 @@ "karma-webpack": "^2.0.3", "localforage": "^1.3.1", "mocha": "^3.4.2", + "puppeteer": "^0.12.0", "rimraf": "^2.6.2", "size-limit": "^0.11.4", "snazzy": "^7.0.0",