build: run browserstack on circleci (#13749)

This commit is contained in:
Paul Gschwendtner
2018-10-25 00:35:06 +02:00
committed by mmalerba
parent bec5823719
commit b30ec56364
8 changed files with 110 additions and 39 deletions
+1 -2
View File
@@ -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
View File
@@ -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']) {