https://github.com/angular/angular
Revision 31c4879da1fffaa6cc713ead1eb2b4fd5f3d0068 authored by Andrew Kushnir on 09 May 2022, 16:35:32 UTC, committed by Andrew Kushnir on 09 May 2022, 18:06:53 UTC
This commit disables the `aio_preview` CircleCI job temporarily, since it's failing after switching to CircleCI API v2. It will be enabled back once the code is updated. More info can be found here: https://github.com/angular/angular/issues/45931

PR Close #45932
1 parent 6644165
Raw File
Tip revision: 31c4879da1fffaa6cc713ead1eb2b4fd5f3d0068 authored by Andrew Kushnir on 09 May 2022, 16:35:32 UTC
ci: disable `aio_preview` CircleCI job temporarily (#45932)
Tip revision: 31c4879
browser-providers.conf.js
/**
 * @license
 * Copyright Google LLC All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

// Unique place to configure the browsers which are used in the different CI jobs in Sauce Labs (SL)
// If the target is set to null, then the browser is not run anywhere during CI.
// If a category becomes empty (e.g. BS and required), then the corresponding job must be commented
// out in the CI configuration.
const config = {
  'Android10': {unitTest: {target: 'SL', required: true}},
  'Android11': {unitTest: {target: 'SL', required: true}},
};

/** Whether browsers should be remotely acquired in debug mode. */
const debugMode = false;

const customLaunchers = {
  'SL_ANDROID10': {
    base: 'SauceLabs',
    browserName: 'Chrome',
    platformName: 'Android',
    platformVersion: '10.0',
    deviceName: 'Google Pixel 3a GoogleAPI Emulator',
    appiumVersion: '1.20.2',
    extendedDebugging: debugMode,
  },
  'SL_ANDROID11': {
    base: 'SauceLabs',
    browserName: 'Chrome',
    platformName: 'Android',
    platformVersion: '11.0',
    deviceName: 'Google Pixel 3a GoogleAPI Emulator',
    appiumVersion: '1.20.2',
    extendedDebugging: debugMode,
  },
};

const sauceAliases = {
  'CI_REQUIRED': buildConfiguration('unitTest', 'SL', true),
  'CI_OPTIONAL': buildConfiguration('unitTest', 'SL', false)
};

module.exports = {
  customLaunchers: customLaunchers,
  sauceAliases: sauceAliases,
};

function buildConfiguration(type, target, required) {
  return Object.keys(config)
      .filter((item) => {
        const conf = config[item][type];
        return conf.required === required && conf.target === target;
      })
      .map((item) => target + '_' + item.toUpperCase());
}
back to top