Run Firefox in Karma on Travis

This commit is contained in:
lukasmartinelli 2016-11-23 16:33:03 +01:00
parent c411294f01
commit e0206eeef4
2 changed files with 8 additions and 2 deletions

View file

@ -2,9 +2,14 @@ var webpackConfig = require('./webpack.config.js');
// Karma configuration // Karma configuration
module.exports = function(config) { module.exports = function(config) {
var browsers = ['Chrome'];
if (process.env.TRAVIS) {
browsers = ['Firefox'];
}
config.set({ config.set({
browsers: [ 'Chrome' ], //run in Chrome browsers: browsers,
frameworks: [ 'mocha' ], //use the mocha test framework frameworks: ['mocha'],
// ... normal karma configuration // ... normal karma configuration
files: [ files: [
// all files ending in "_test" // all files ending in "_test"

View file

@ -89,6 +89,7 @@
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"karma": "^1.3.0", "karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0", "karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^1.3.0", "karma-mocha": "^1.3.0",
"karma-webpack": "^1.8.0", "karma-webpack": "^1.8.0",
"mocha": "^3.1.2", "mocha": "^3.1.2",