This repository has been archived by the owner on Feb 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
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
d73826f
commit 32960b1
Showing
2 changed files
with
62 additions
and
7 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
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,62 @@ | ||
/** | ||
* Karma Configuration: Base. | ||
*/ | ||
var path = require("path"); | ||
var baseCfg = require("./karma.conf"); | ||
|
||
// Sauce labs environments. | ||
var SAUCE_ENVS = { | ||
"chrome-mac": { | ||
base: "SauceLabs", | ||
browserName: "chrome", | ||
platform: "OS X 10.9" | ||
}, | ||
"safari-mac": { | ||
base: "SauceLabs", | ||
browserName: "safari", | ||
platform: "OS X 10.9" | ||
}, | ||
"ie9-win7": { | ||
base: "SauceLabs", | ||
browserName: "internet explorer", | ||
platform: "Windows 7", | ||
version: "9" | ||
}, | ||
"ie10-win7": { | ||
base: "SauceLabs", | ||
browserName: "internet explorer", | ||
platform: "Windows 7", | ||
version: "10" | ||
}, | ||
"ie11-win7": { | ||
base: "SauceLabs", | ||
browserName: "internet explorer", | ||
platform: "Windows 7", | ||
version: "11" | ||
} | ||
}; | ||
|
||
// Optionally filter browsers from environment or "all browsers" | ||
var BROWSERS = (process.env.BROWSERS || "").split(",") | ||
.filter(function (x) { return x; }) || Object.keys(SAUCE_ENVS); | ||
|
||
// SauceLabs tag. | ||
var SAUCE_BRANCH = process.env.TRAVIS_BRANCH || "local"; | ||
var SAUCE_TAG = process.env.SAUCE_USERNAME + "@" + SAUCE_BRANCH; | ||
|
||
module.exports = function(config) { | ||
baseCfg(config); | ||
config.set({ | ||
reporters: ["spec", "saucelabs"], | ||
sauceLabs: { | ||
testName: "full-stack-testing - Frontend Unit Tests", | ||
tags: [SAUCE_TAG], | ||
public: "public" | ||
}, | ||
// Timeouts: Allow "n" minutes before saying "good enough". See also: | ||
// https://github.com/angular/angular.js/blob/master/karma-shared.conf.js | ||
captureTimeout: 0, // Pass through to SL. | ||
customLaunchers: SAUCE_ENVS, | ||
browsers: BROWSERS | ||
}); | ||
}; |