mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: run browserstack on circleci (#13749)
This commit is contained in:
committed by
mmalerba
parent
bec5823719
commit
b30ec56364
@@ -71,8 +71,7 @@ function decodeToken(token) {
|
||||
return (token || '').split('').reverse().join('');
|
||||
}
|
||||
|
||||
|
||||
/** Ensures that the Travis access keys work properly. */
|
||||
/** Ensures that the Saucelabs and Browserstack access keys work properly. */
|
||||
if (process.env.TRAVIS) {
|
||||
process.env.SAUCE_ACCESS_KEY = decodeToken(process.env.SAUCE_ACCESS_KEY);
|
||||
process.env.BROWSER_STACK_ACCESS_KEY = decodeToken(process.env.BROWSER_STACK_ACCESS_KEY);
|
||||
|
||||
+11
-1
@@ -101,7 +101,17 @@ module.exports = (config) => {
|
||||
});
|
||||
|
||||
if (process.env['CIRCLECI']) {
|
||||
config.browsers = platformMap[process.env['TEST_PLATFORM']];
|
||||
const tunnelIdentifier = process.env['CIRCLE_BUILD_NUM'];
|
||||
const buildIdentifier = `angular-material-${tunnelIdentifier}`;
|
||||
const testPlatform = process.env['TEST_PLATFORM'];
|
||||
|
||||
if (testPlatform === 'browserstack') {
|
||||
config.browserStack.build = buildIdentifier;
|
||||
config.browserStack.tunnelIdentifier = tunnelIdentifier;
|
||||
}
|
||||
|
||||
// Configure Karma launch the browsers that belong to the given test platform.
|
||||
config.browsers = platformMap[testPlatform];
|
||||
}
|
||||
|
||||
if (process.env['TRAVIS']) {
|
||||
|
||||
Reference in New Issue
Block a user