forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
22 lines (18 loc) · 1.04 KB
/
constants.ts
File metadata and controls
22 lines (18 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// tslint:disable:no-string-literal
import { workspace } from 'vscode';
import { PythonSettings } from '../client/common/configSettings';
export const IS_APPVEYOR = process.env['APPVEYOR'] === 'true';
export const IS_TRAVIS = process.env['TRAVIS'] === 'true';
export const IS_CI_SERVER = IS_TRAVIS || IS_APPVEYOR;
export const TEST_TIMEOUT = 25000;
export const IS_MULTI_ROOT_TEST = isMultitrootTest();
export const IS_CI_SERVER_TEST_DEBUGGER = process.env['IS_CI_SERVER_TEST_DEBUGGER'] === '1';
// If running on CI server, then run debugger tests ONLY if the corresponding flag is enabled.
export const TEST_DEBUGGER = IS_CI_SERVER ? IS_CI_SERVER_TEST_DEBUGGER : true;
function isMultitrootTest() {
return Array.isArray(workspace.workspaceFolders) && workspace.workspaceFolders.length > 1;
}
export const IS_ANALYSIS_ENGINE_TEST =
!IS_TRAVIS && (process.env['VSC_PYTHON_ANALYSIS'] === '1' || !PythonSettings.getInstance().jediEnabled);