/*
 * @overview Configuration for karma
 * @see {@link http://karma-runner.github.io/0.10/index.html | karma}
 */
module.exports = function (config) {
    var ports = require('../../ports');
    config.set({
        basePath: "../..",
        frameworks: ['jasmine'],
        files: [
            {{#each files}}'{{this}}',
            {{/each}}
        ],
        exclude: [
            '**/*.config.js'
        ],
        port: ports['browser_unit_test'],
        logLevel: config.LOG_INFO,
        browsers: [process.env.TRAVIS ? 'Firefox' : 'Chrome'],
        reporters: ['progress'],
        plugins: [
            'karma-coffee-preprocessor',
            'karma-chrome-launcher',
            'karma-firefox-launcher',
            'karma-jasmine'
        ],
        singleRun: true,
        preprocessors: {
            '**/*.coffee': ['coffee']
        }
    });
};