Skip to content

Commit e715f8d

Browse files
author
Kartik Raj
committed
Try setting
1 parent a13d2d9 commit e715f8d

File tree

3 files changed

+3
-118
lines changed

3 files changed

+3
-118
lines changed

build/ci/vscode-python-ci.yaml

Lines changed: 0 additions & 118 deletions
Original file line numberDiff line numberDiff line change
@@ -26,124 +26,6 @@ stages:
2626
# define. They are detailed in templates/test_phases.yml. The only
2727
# required value is "TestsToRun".
2828

29-
- stage: Linux
30-
dependsOn: []
31-
jobs:
32-
- job: 'Py3x'
33-
dependsOn: []
34-
timeoutInMinutes: 120
35-
strategy:
36-
matrix:
37-
'Unit':
38-
# with mocks
39-
# focused on small units (i.e. functions)
40-
# and tightly controlled dependencies
41-
TestsToRun: 'testUnitTests, pythonUnitTests, pythonInternalTools, pythonIPythonTests'
42-
NeedsPythonTestReqs: true
43-
NeedsIPythonReqs: true
44-
'Functional':
45-
# no mocks, no vscode
46-
# focused on integration
47-
TestsToRun: 'testfunctional'
48-
NeedsPythonTestReqs: true
49-
NeedsPythonFunctionalReqs: true
50-
'Single Workspace':
51-
# no mocks, with vscode
52-
# focused on integration
53-
TestsToRun: 'testSingleWorkspace'
54-
NeedsPythonTestReqs: true
55-
'Multi Workspace':
56-
# no mocks, with vscode
57-
# focused on integration
58-
TestsToRun: 'testMultiWorkspace'
59-
NeedsPythonTestReqs: true
60-
'Venv':
61-
TestsToRun: 'venvTests'
62-
NeedsPythonTestReqs: true
63-
NeedsIPythonReqs: true
64-
# This is for the venvTests to use, not needed if you don't run venv tests...
65-
PYTHON_VIRTUAL_ENVS_LOCATION: './src/tmp/envPaths.json'
66-
'Debugger':
67-
TestsToRun: 'testDebugger'
68-
NeedsPythonTestReqs: true
69-
'Smoke':
70-
TestsToRun: 'testSmoke'
71-
NeedsPythonTestReqs: true
72-
NeedsIPythonReqs: true
73-
maxParallel: 2
74-
pool:
75-
vmImage: 'ubuntu-16.04'
76-
steps:
77-
- template: templates/test_phases.yml
78-
79-
# This is the oldest Python 3 version we support.
80-
- job: 'Py35'
81-
dependsOn: []
82-
timeoutInMinutes: 120
83-
strategy:
84-
matrix:
85-
'Unit':
86-
PythonVersion: '3.5'
87-
# Note: "pythonInternalTools" tests are 3.7+.
88-
TestsToRun: 'testUnitTests, pythonUnitTests, pythonIPythonTests'
89-
NeedsPythonTestReqs: true
90-
NeedsIPythonReqs: true
91-
'Venv':
92-
PythonVersion: '3.5'
93-
TestsToRun: 'venvTests'
94-
NeedsPythonTestReqs: true
95-
NeedsIPythonReqs: true
96-
PYTHON_VIRTUAL_ENVS_LOCATION: './src/tmp/envPaths.json'
97-
'Debugger':
98-
PythonVersion: '3.5'
99-
TestsToRun: 'testDebugger'
100-
NeedsPythonTestReqs: true
101-
maxParallel: 2
102-
pool:
103-
vmImage: 'ubuntu-16.04'
104-
steps:
105-
- template: templates/test_phases.yml
106-
107-
- stage: Mac
108-
dependsOn: []
109-
jobs:
110-
- job: 'Py3x'
111-
dependsOn: []
112-
timeoutInMinutes: 120
113-
strategy:
114-
matrix:
115-
'Unit':
116-
TestsToRun: 'testUnitTests, pythonUnitTests, pythonInternalTools, pythonIPythonTests'
117-
NeedsPythonTestReqs: true
118-
NeedsIPythonReqs: true
119-
'Functional':
120-
TestsToRun: 'testfunctional'
121-
NeedsPythonTestReqs: true
122-
NeedsPythonFunctionalReqs: true
123-
'Single Workspace':
124-
TestsToRun: 'testSingleWorkspace'
125-
NeedsPythonTestReqs: true
126-
'Multi Workspace':
127-
TestsToRun: 'testMultiWorkspace'
128-
NeedsPythonTestReqs: true
129-
'Venv':
130-
TestsToRun: 'venvTests'
131-
NeedsPythonTestReqs: true
132-
NeedsIPythonReqs: true
133-
PYTHON_VIRTUAL_ENVS_LOCATION: './src/tmp/envPaths.json'
134-
'Debugger':
135-
TestsToRun: 'testDebugger'
136-
NeedsPythonTestReqs: true
137-
'Smoke':
138-
TestsToRun: 'testSmoke'
139-
NeedsPythonTestReqs: true
140-
NeedsIPythonReqs: true
141-
maxParallel: 2
142-
pool:
143-
vmImage: '$(vmImageMacOS)'
144-
steps:
145-
- template: templates/test_phases.yml
146-
14729
- stage: Windows
14830
dependsOn: []
14931
jobs:

src/client/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,10 @@ export function buildApi(
123123
if (process.env.VSC_PYTHON_CI_TEST === '1') {
124124
// tslint:disable: no-console
125125
console.log('CI_TEST is set');
126+
console.log(process.env.VSC_PYTHON_CI_TEST);
126127
} else {
127128
console.log('CI_TEST is not set');
129+
console.log(process.env.VSC_PYTHON_CI_TEST);
128130
}
129131

130132
console.log('Setting serviceContainer for ya 1');

src/test/initialize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export async function initializePython() {
3232

3333
// tslint:disable-next-line:no-any
3434
export async function initialize(): Promise<IExtensionTestApi> {
35+
process.env.VSC_PYTHON_CI_TEST = '1';
3536
await initializePython();
3637
const api = await activateExtension();
3738
if (!IS_SMOKE_TEST) {

0 commit comments

Comments
 (0)