From 65adf2fd1d91d4e16ae8e02e7709278ec55601c2 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Mon, 20 Oct 2014 21:45:30 +0100 Subject: [PATCH] try sauce --- Gruntfile.js | 27 ++++++++++++++++++++++++++- package.json | 3 ++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index baef752d..381f41af 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 9859ccfe..3398869e 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",