ignore sauce errors at the moment

This commit is contained in:
Luke Page
2015-01-11 16:38:40 +00:00
parent dff4540f5b
commit 40eb3caacc

View File

@@ -365,6 +365,20 @@ module.exports = function (grunt) {
'connect::keepalive'
]);
var previous_force_state = grunt.option("force");
grunt.registerTask("force",function(set){
if (set === "on") {
grunt.option("force",true);
}
else if (set === "off") {
grunt.option("force",false);
}
else if (set === "restore") {
grunt.option("force",previous_force_state);
}
});
grunt.registerTask('sauce', [
'browsertest-lessjs',
'jasmine::build',
@@ -388,7 +402,9 @@ module.exports = function (grunt) {
if (isNaN(Number(process.env.TRAVIS_PULL_REQUEST, 10)) &&
Number(process.env.TRAVIS_NODE_VERSION) === 0.11 &&
(process.env.TRAVIS_BRANCH === "master" || process.env.TRAVIS_BRANCH === "sauce")) {
testTasks.push("force:on");
testTasks.push("sauce-after-setup");
testTasks.push("force:off");
}
// Run all tests