-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f69b351
commit 05441a4
Showing
4 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
language: node_js | ||
script: "npm run travis" | ||
script: | ||
- "npm run travis" | ||
- "npm run browserify:tests" | ||
- "npm run test:saucelabs --browsers FIREFOX_V4,FIREFOX_V11,FIREFOX_V20,FIREFOX_V35" | ||
- "npm run test:saucelabs --browsers CHROME_V35,CHROME_V40,ANDROID_V4.0,ANDROID_V4.3" | ||
- "npm run test:saucelabs --browsers INTERNET_EXPLORER_V9,INTERNET_EXPLORER_V10,INTERNET_EXPLORER_V11" | ||
node_js: | ||
- "0.12" | ||
- "0.10" | ||
- "0.10" | ||
env: | ||
# SAUCE_USERNAME=... | ||
- secure: "gHcd43f/5i2nSuVXMr9YjmSZkdM9Qiq8f2qNAtoNGEW9yIKQutSMSDA33WPRIk5ibHnKyVes5Lt2IwZnlAvrVMjSoE7Vn7uHA84fBtuaWoajQn7ckVSN6IvNGCV2p5uZ9sL7JwoqhprMvYnempn+GBMimXCYpmr45/N5wBz6Oq8=" | ||
# SAUCE_ACCESS_KEY=... | ||
- secure: "gSXfR+VSveAVCAZlK90sVEP77KDX9B9gxXvXnobkykvqaaWTkmlTBtPOIvSBMIc+VXkwfTA5/8b/zaBqZB8LGcQCjoyLh4M1xLcki3iAAWPu9xLiiDEE3MVpST8Ml2+4bPDuzHlQt26u2QtoN7kn5/H9O5NYy6pW5HZAiWVUTnY=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Karma configuration for SauceLabs | ||
*/ | ||
|
||
// Browsers to run on Sauce Labs platforms | ||
var sauceBrowsers = [ | ||
['firefox', '35'], | ||
['firefox', '20'], | ||
['firefox', '11'], | ||
['firefox', '4'], | ||
|
||
['chrome', '40'], | ||
['chrome', '35'], | ||
|
||
['internet explorer', '11', 'Windows 8.1'], | ||
['internet explorer', '10', 'Windows 8'], | ||
['internet explorer', '9', 'Windows 7'], | ||
['internet explorer', '8'], | ||
|
||
['android', '4.3'], | ||
['android', '4.0'] | ||
].reduce(function(memo, platform) { | ||
var label = (platform[0] + '_v' + platform[1]).replace(' ', '_').toUpperCase(); | ||
var browserConfig = { | ||
base: 'SauceLabs', | ||
browserName: platform[0], | ||
version: platform[1] | ||
}; | ||
if (platform[2]) browserConfig['platform'] = platform[2]; | ||
memo[label] = browserConfig; | ||
return memo; | ||
}, {}); | ||
|
||
module.exports = function(config) { | ||
|
||
if ( !process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY ) { | ||
console.log('Sauce environments not set --- Skipping'); | ||
return process.exit(0); | ||
} | ||
|
||
require('./karma.conf')(config); | ||
|
||
config.set({ | ||
|
||
singleRun: true, | ||
|
||
reporters: ['dots', 'saucelabs'], | ||
|
||
port: 9876, | ||
|
||
sauceLabs: { | ||
build: 'TRAVIS #' + process.env.TRAVIS_BUILD_NUMBER + ' (' + process.env.TRAVIS_BUILD_ID + ')', | ||
startConnect: true, | ||
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER | ||
}, | ||
|
||
transports: ['xhr-polling'], | ||
captureTimeout: 120000, | ||
customLaunchers: sauceBrowsers, | ||
browsers: undefined | ||
|
||
}); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters