[Pkg-javascript-commits] [less.js] 255/285: only run saucelabs from travis in node 0.11 and on branches, not pr's

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.0.0
in repository less.js.

commit 45f6c6de50bbbac21cc956424ff29846c2e6dbf1
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sat Nov 1 19:44:52 2014 +0000

    only run saucelabs from travis in node 0.11 and on branches, not pr's
---
 Gruntfile.js | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/Gruntfile.js b/Gruntfile.js
index 6e61743..38d275d 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -336,7 +336,6 @@ module.exports = function (grunt) {
         'browsertest-lessjs',
         'connect',
         'jasmine',
-        'saucelabs-jasmine',
         'clean:sauce_log'
     ]);
 
@@ -356,13 +355,20 @@ module.exports = function (grunt) {
         'clean:sauce_log'
     ]);
 
-    // Run all tests
-    grunt.registerTask('test', [
+    var testTasks = [
         'clean',
         'jshint',
         'shell:test',
         'browsertest'
-    ]);
+    ];
+
+    if (isNaN(Number(process.env.TRAVIS_PULL_REQUEST, 10)) &&
+        Number(process.env.TRAVIS_NODE_VERSION) === "0.11") {
+        testTasks.push("sauce");
+    }
+
+    // Run all tests
+    grunt.registerTask('test', testTasks);
 
     // generate a good test environment for testing sourcemaps
     grunt.registerTask('sourcemap-test', [

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list