2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2017 Signal Messenger, LLC
|
2022-06-13 21:39:35 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
/* eslint-disable no-console */
|
|
|
|
/* eslint-disable global-require */
|
|
|
|
|
|
|
|
const { config } = window.SignalContext;
|
|
|
|
|
|
|
|
if (config.environment === 'test') {
|
|
|
|
console.log('Importing test infrastructure...');
|
|
|
|
require('./preload_test');
|
|
|
|
}
|
|
|
|
if (config.enableCI) {
|
|
|
|
console.log('Importing CI infrastructure...');
|
2023-01-13 00:24:59 +00:00
|
|
|
const { getCI } = require('../../CI');
|
2023-01-19 00:02:03 +00:00
|
|
|
window.SignalCI = getCI(window.getTitle());
|
2022-06-13 21:39:35 +00:00
|
|
|
}
|