var constants = require('./testConstants.json');

var specs = ['bellows/**/e2e/*.spec.js'];
if (constants.siteType == 'languageforge') {
    specs.push('languageforge/**/e2e/*.spec.js')
} else if (constants.siteType == 'scriptureforge') {
    specs.push('scriptureforge/**/e2e/*.spec.js')
}

exports.config = {
  // The address of a running selenium server.
  // seleniumAddress: 'http://localhost:4444/wd/hub',
  seleniumAddress: 'http://192.168.56.1:4444/wd/hub',
  // TODO: Re-enable when Test Project can be created with the jamaicanpsalm theme   2014-05 DDW
  //baseUrl: 'https://scriptureforge.local',
  baseUrl: constants.baseUrl,
  
  // To run tests in a single browser, uncomment the following
  capabilities: {
    'browserName': 'chrome',
    'chromeOptions': {
        'args': ['--start-maximized'],
    },
  },

  // To run tests in multiple browsers, uncomment the following
  // multiCapabilities: [{
  //   'browserName': 'chrome'
  // }, {
  //   'browserName': 'firefox'
  // }],

  // Spec patterns are relative to the current working directly when
  // protractor is called.
  specs: specs,

  // Options to be passed to Jasmine-node.
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 70000,
    //isVerbose: true,
  }
};

@@ -1250,15 +1250,197 @@
 : true,%0A
+  %7D,%0A%0A  onPrepare: function() %7B%0A    if (process.env.TEAMCITY_VERSION) %7B%0A      require('jasmine-reporters');%0A      jasmine.getEnv().addReporter(new jasmine.TeamcityReporter());%0A    %7D%0A
   %7D%0A%7D;%0A

Use TeamCity reporter iff on build server