mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 07:15:26 +01:00
Run Firefox in Karma on Travis
This commit is contained in:
parent
c411294f01
commit
e0206eeef4
2 changed files with 8 additions and 2 deletions
|
@ -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"
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue