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
17 lines (14 loc) · 794 Bytes
/
Copy pathconstants.ts
File metadata and controls
17 lines (14 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// tslint:disable:no-string-literal
import { workspace } from 'vscode';
export const IS_APPVEYOR = process.env['APPVEYOR'] === 'true';
export const IS_CI_SERVER = process.env['TRAVIS'] === 'true' || 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;
}