forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathciConstants.ts
More file actions
21 lines (18 loc) · 919 Bytes
/
ciConstants.ts
File metadata and controls
21 lines (18 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
//
// Constants that pertain to CI processes/tests only. No dependencies on vscode!
//
export const PYTHON_VIRTUAL_ENVS_LOCATION = process.env.PYTHON_VIRTUAL_ENVS_LOCATION;
export const IS_APPVEYOR = process.env.APPVEYOR === 'true';
export const IS_TRAVIS = process.env.TRAVIS === 'true';
export const IS_VSTS = process.env.TF_BUILD !== undefined;
export const IS_CI_SERVER = IS_TRAVIS || IS_APPVEYOR || IS_VSTS;
// Control JUnit-style output logging for reporting purposes.
let reportJunit: boolean = false;
if (IS_CI_SERVER && process.env.MOCHA_REPORTER_JUNIT !== undefined) {
reportJunit = process.env.MOCHA_REPORTER_JUNIT.toLowerCase() === 'true';
}
export const MOCHA_REPORTER_JUNIT: boolean = reportJunit;
export const IS_CI_SERVER_TEST_DEBUGGER = process.env.IS_CI_SERVER_TEST_DEBUGGER === '1';