You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
974 B
JavaScript
44 lines
974 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(config) {
|
|
|
|
var configuration = {
|
|
autoWatch : false,
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
ngHtml2JsPreprocessor: {
|
|
stripPrefix: 'src/',
|
|
moduleName: 'gulpAngular'
|
|
},
|
|
|
|
browsers : ['PhantomJS'],
|
|
|
|
plugins : [
|
|
'karma-phantomjs-launcher',
|
|
'karma-jasmine',
|
|
'karma-ng-html2js-preprocessor'
|
|
],
|
|
|
|
preprocessors: {
|
|
'src/**/*.html': ['ng-html2js']
|
|
}
|
|
};
|
|
|
|
// This block is needed to execute Chrome on Travis
|
|
// If you ever plan to use Chrome and Travis, you can keep it
|
|
// If not, you can safely remove it
|
|
// https://github.com/karma-runner/karma/issues/1144#issuecomment-53633076
|
|
if(configuration.browsers[0] === 'Chrome' && process.env.TRAVIS) {
|
|
configuration.customLaunchers = {
|
|
'chrome-travis-ci': {
|
|
base: 'Chrome',
|
|
flags: ['--no-sandbox']
|
|
}
|
|
};
|
|
configuration.browsers = ['chrome-travis-ci'];
|
|
}
|
|
|
|
config.set(configuration);
|
|
};
|