<commit_before>const webpack = require('webpack')
const sauceLaunchers = require('./sauceLaunchers.config')

var browsers
if (process.env.TRAVIS) {
  // Travis only comes with Firefox
  browsers = ['Firefox']
} else if (process.env.SAUCE) {
  if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
    console.error('SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables must be set!')
    process.exit(1)
  }
  browsers = Object.keys(sauceLaunchers)
} else if (process.platform === 'darwin') {
  browsers = ['Chrome', 'Firefox', 'Safari']
} else {
  browsers = ['Chrome', 'Firefox']
}

module.exports = function (config) {
  const ci = process.env.CI
  const sauce = process.env.SAUCE

  config.set({
    singleRun: true,
    frameworks: ['jasmine'],
    files: [
      'stylesheets/minimal.css',
      'test/acceptance/tests.js'
    ],
    preprocessors: {
      'test/acceptance/tests.js': ['webpack', 'sourcemap']
    },
    reporters: ['dots', 'saucelabs'],
    webpack: {
      module: {
        loaders: [<commit_msg>Run local acceptance tests in Chrome only<commit_after>const webpack = require('webpack')
const sauceLaunchers = require('./sauceLaunchers.config')

var browsers
if (process.env.TRAVIS) {
  // Travis only comes with Firefox
  browsers = ['Firefox']
} else if (process.env.SAUCE) {
  if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
    console.error('SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables must be set!')
    process.exit(1)
  }
  browsers = Object.keys(sauceLaunchers)
} else {
  browsers = ['Chrome']
}

module.exports = function (config) {
  const ci = process.env.CI
  const sauce = process.env.SAUCE

  config.set({
    singleRun: true,
    frameworks: ['jasmine'],
    files: [
      'stylesheets/minimal.css',
      'test/acceptance/tests.js'
    ],
    preprocessors: {
      'test/acceptance/tests.js': ['webpack', 'sourcemap']
    },
    reporters: ['dots', 'saucelabs'],
    webpack: {
      module: {
        loaders: [
{'fraction_non_alphanumeric': 0.14626865671641792, 'fraction_numerical': 0.0009950248756218905, 'mean_word_length': 3.498881431767338, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1012007', 'n_tokens_mistral': 697, 'n_tokens_neox': 696, 'n_words': 143}