| 38 | ssl._create_default_https_context = ssl._create_unverified_context |
| 39 | |
| 40 | class ProjectConfig: |
| 41 | def __init__(self, |
| 42 | name='devtools-frontend', |
| 43 | gs_root='gs://devtools-frontend-screenshots', |
| 44 | builder_prefix='devtools_screenshot', |
| 45 | platforms=None, |
| 46 | ignore_failed_builders=False): |
| 47 | self.name = name |
| 48 | self.gs_root = gs_root |
| 49 | self.gs_folder = self.gs_root + '/screenshots' |
| 50 | self.builder_prefix = builder_prefix |
| 51 | self.platforms = platforms or ['linux', 'mac', 'win'] |
| 52 | platforms_re = "|".join(self.platforms) |
| 53 | self.builder_pattern = (f'{self.builder_prefix}_({platforms_re})_rel') |
| 54 | self.ignore_failed_builders = ignore_failed_builders |
| 55 | |
| 56 | |
| 57 | TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) |