try sauce

This commit is contained in:
Luke Page
2014-10-20 21:45:30 +01:00
parent 329e87563a
commit 65adf2fd1d
2 changed files with 28 additions and 2 deletions

View File

@@ -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',

View File

@@ -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",