Skip to content

Commit

Permalink
Add sauce tests for usual suspects
Browse files Browse the repository at this point in the history
Partial fixe for #66
  • Loading branch information
kpdecker committed Aug 7, 2015
1 parent c28fe1a commit 90a5cc6
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: node_js
sudo: false
env:
global:
- secure: fyHOH0NftlAdy2tQawAq+qqcnc7GWo7ojRl5oHi30ueu79wFWTTWWvARCA8eo+FtWZsGlLfvyuzpmjnbJfMaN3wCzVfCG8ddd+nDhYKYbA4j+iqJarELQlVY5QguVGryO1emRPxFg2+WaSiaHCEvp5/eC7KYyHmlGtq0K0y1Svc=
- secure: y/hyg7hEbYMoBjQOJ8UUrRp01PT4un0fTJWzNbRWUzAC6RXNOPd/SaOREHkJ/exLoyl5xV5I3gI4jOqy/KgtOH1DBEDuV6puq61Xc5C5GQ7OWiTNAnUZIbmNeTNgKdsfOySLvrEMNVN5xfL/SPe9yQKB2R4fUZ1MdBDAHs+xIas=

matrix:
include:
Expand Down
6 changes: 5 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ module.exports = function(grunt) {
},
unit: {
singleRun: true
},
sauce: {
singleRun: true,
browsers: ['sl_chrome', 'sl_firefox', 'sl_safari', 'sl_ie_11', 'sl_ie_9']
}
},

Expand Down Expand Up @@ -116,7 +120,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-webpack');

grunt.registerTask('travis',
!process.env.KARMA
!process.env.KARMA && process.env.SAUCE_USERNAME
? ['clean', 'build', 'karma:unit', 'cover']
: ['clean', 'build', 'cover']);

Expand Down
34 changes: 32 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
/* eslint-env node */
/* eslint-disable no-var, camelcase */
module.exports = function(config) {
var customLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
sl_safari: {
base: 'SauceLabs',
browserName: 'safari',
version: '8'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11'
},
sl_ie_9: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '9'
}
};

config.set({
basePath: '',

Expand All @@ -24,14 +51,17 @@ module.exports = function(config) {
]
}
},

webpackMiddleware: {
noInfo: true
},

reporters: ['progress'],
sauceLabs: {
testName: 'jsdiff'
},

reporters: ['progress', 'saucelabs'],

customLaunchers: customLaunchers,
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"karma": "^0.13.8",
"karma-mocha": "^0.2.0",
"karma-phantomjs-launcher": "^0.2.1",
"karma-sauce-launcher": "^0.2.14",
"karma-sourcemap-loader": "^0.3.5",
"karma-webpack": "^1.7.0",
"mocha": "^2.2.4",
Expand Down

0 comments on commit 90a5cc6

Please sign in to comment.