86bcfb6c by jforbes

Fixed task selection logic

Run Karma tests with Chrome and Firefox
1 parent 12790e51
......@@ -351,12 +351,14 @@ module.exports = function(grunt) {
grunt.task.run(['jshint', 'manifests-to-js']);
if (process.env.TRAVIS_PULL_REQUEST) {
grunt.task.run(['karma:phantomjs']);
} else if (process.env.TRAVIS) {
if (process.env.TRAVIS) {
if (process.env.TRAVIS_PULL_REQUEST === 'false') {
grunt.task.run(['karma:saucelabs']);
grunt.task.run(['connect:test', 'protractor:saucelabs']);
} else {
grunt.task.run(['karma:phantomjs']);
}
} else {
if (tasks.length === 0) {
tasks.push('chrome');
}
......
......@@ -61,7 +61,7 @@ module.exports = function(config) {
customLaunchers: customLaunchers,
// Start these browsers
browsers: ['chrome_sl', 'ipad_sl'], //Object.keys(customLaunchers),
browsers: ['chrome_sl', 'firefox_sl'], //Object.keys(customLaunchers),
// List of files / patterns to load in the browser
// Add any new src files to this list.
......