travis use PhantomJS

This commit is contained in:
pangxie1991
2017-04-20 19:42:30 +08:00
parent aee2bce710
commit 01b3e21aaf
5 changed files with 86 additions and 81 deletions

View File

@@ -5,10 +5,11 @@ require('babel-core/register')({
});
var webpackConfig = require('./get-webpack-conf');
var travis = process.env.TRAVIS;
module.exports = function(config) {
config.set({
browsers: ['Chrome'],
browsers: travis ? ['PhantomJS'] : ['Chrome'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['spec', 'coverage'],
files: ['./index.js'],