[Pkg-javascript-commits] [less.js] 204/285: try sauce

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:54 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 65adf2fd1d91d4e16ae8e02e7709278ec55601c2
Author: Luke Page <luke.a.page at gmail.com>
Date:   Mon Oct 20 21:45:30 2014 +0100

    try sauce
---
 Gruntfile.js | 27 ++++++++++++++++++++++++++-
 package.json |  3 ++-
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/Gruntfile.js b/Gruntfile.js
index baef752..381f41a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -226,6 +226,22 @@ module.exports = function (grunt) {
             }
         },
 
+        'saucelabs-jasmine': {
+            all: {
+                options: {
+                    username: "lukeapage",
+                    key: "2d7199e2-74da-432f-9449-c8c247babecf",
+                    urls: ['http://127.0.0.1:8081/tmp/browser/test-runner-main.html'],
+                    testname: 'Sauce Unit Test for less.js',
+                    browsers: [{
+                        browserName: "chrome",
+                        version: '37',
+                        platform: 'Windows 8'
+                    }]
+                }
+            }
+        },
+
         // Clean the version of less built for the tests
         clean: {
             test: ['test/browser/less.js', 'tmp'],
@@ -275,7 +291,8 @@ module.exports = function (grunt) {
     grunt.registerTask('browsertest', [
         'browsertest-lessjs',
         'connect',
-        'jasmine'
+        'jasmine',
+        'saucelabs-jasmine'
     ]);
 
     // setup a web server to run the browser tests in a browser rather than phantom
@@ -285,6 +302,14 @@ module.exports = function (grunt) {
         'connect::keepalive'
     ]);
 
+    // setup a web server to run the browser tests in a browser rather than phantom
+    grunt.registerTask('sauce', [
+        'browsertest-lessjs',
+        'jasmine::build',
+        'connect',
+        'saucelabs-jasmine'
+    ]);
+
     // Run all tests
     grunt.registerTask('test', [
         'clean',
diff --git a/package.json b/package.json
index 9859ccf..3398869 100644
--- a/package.json
+++ b/package.json
@@ -59,7 +59,8 @@
     "grunt-shell": "~1.1.1",
     "matchdep": "~0.3.0",
     "time-grunt": "~1.0.0",
-    "grunt-browserify": "~3.0.1"
+    "grunt-browserify": "~3.0.1",
+    "grunt-saucelabs": "~8.3.2"
   },
   "keywords": [
     "compile less",

-- 
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