1- parameters :
2- name : ' '
3- pool : ' '
4-
5- jobs :
6- - job : ${{ parameters.name }}
7- pool : ${{ parameters.pool }}
8-
9- steps :
10- - task : NodeTool@0
11- displayName : ' Use Node 8.x'
12- inputs :
13- versionSpec : 8.x
14-
15- - script : npm install
16- displayName : " Install Dependencies"
17- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
18-
19- - script : npm run compile
20- displayName : " Compile Sources"
21- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
22-
23- - script : npm run pr-check
24- displayName : ' Validate Extension/package.json'
25- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
26-
27- - script : npm run tslint
28- displayName : ' Run Linter'
29- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
30-
31- - script : ' npm run unitTests'
32- displayName : ' Run unit tests'
33- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
34- continueOnError : true
35-
36- - script : |
37- set -e
38- /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
39- disown -ar
40- displayName: 'Start xvfb'
41-
42- - script : |
43- cp $(Build.SourcesDirectory)/Extension/out/test/integrationTests/MockDebugger/debugAdapterDescriptorFactory.js $(Build.SourcesDirectory)/Extension/out/src/Debugger/debugAdapterDescriptorFactory.js
44- displayName: Replace Debug Adapter Descriptor Factory
45-
46- - script : ' node node_modules/vscode/bin/test'
47- displayName : ' Run debug integration tests'
48- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
49- continueOnError : true
50- env :
51- MOCK_DEBUG : 1
52- DISPLAY : :10
53- CODE_TESTS_PATH : ' $(Build.SourcesDirectory)/Extension/out/test/integrationTests/debug'
54- CODE_EXTENSIONS_PATH : ' $(Build.SourcesDirectory)/Extension'
55- CODE_TESTS_WORKSPACE : ' $(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
56- CODE_DISABLE_EXTENSIONS : 1
57-
58- - script : ' node node_modules/vscode/bin/test'
59- displayName : ' Run languageServer integration tests'
60- workingDirectory : ' $(Build.SourcesDirectory)/Extension'
61- continueOnError : true
62- env :
63- DISPLAY : :10
64- CODE_TESTS_PATH : ' $(Build.SourcesDirectory)/Extension/out/test/integrationTests/languageServer'
65- CODE_EXTENSIONS_PATH : ' $(Build.SourcesDirectory)/Extension'
66- CODE_TESTS_WORKSPACE : ' $(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
67- CODE_DISABLE_EXTENSIONS : 1
68-
69- - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
70- displayName : ' Component Detection'
71- continueOnError : true
1+ parameters :
2+ name : ' '
3+ pool : ' '
4+
5+ jobs :
6+ - job : ${{ parameters.name }}
7+ pool : ${{ parameters.pool }}
8+
9+ steps :
10+ - task : NodeTool@0
11+ displayName : ' Use Node 8.x'
12+ inputs :
13+ versionSpec : 8.x
14+
15+ - script : npm install
16+ displayName : " Install Dependencies"
17+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
18+
19+ - script : npm run compile
20+ displayName : " Compile Sources"
21+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
22+
23+ - script : npm run pr-check
24+ displayName : ' Validate Extension/package.json'
25+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
26+
27+ - script : npm run tslint
28+ displayName : ' Run Linter'
29+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
30+
31+ - script : ' npm run unitTests'
32+ displayName : ' Run unit tests'
33+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
34+ continueOnError : true
35+
36+ - script : |
37+ set -e
38+ /usr/bin/Xvfb :10 -ac >> /tmp/Xvfb.out 2>&1 &
39+ disown -ar
40+ displayName: 'Start xvfb'
41+
42+ - script : |
43+ cp $(Build.SourcesDirectory)/Extension/out/test/integrationTests/MockDebugger/debugAdapterDescriptorFactory.js $(Build.SourcesDirectory)/Extension/out/src/Debugger/debugAdapterDescriptorFactory.js
44+ displayName: Replace Debug Adapter Descriptor Factory
45+
46+ - script : ' node node_modules/vscode/bin/test'
47+ displayName : ' Run debug integration tests'
48+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
49+ continueOnError : true
50+ env :
51+ MOCK_DEBUG : 1
52+ DISPLAY : :10
53+ CODE_TESTS_PATH : ' $(Build.SourcesDirectory)/Extension/out/test/integrationTests/debug'
54+ CODE_EXTENSIONS_PATH : ' $(Build.SourcesDirectory)/Extension'
55+ CODE_TESTS_WORKSPACE : ' $(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
56+ CODE_DISABLE_EXTENSIONS : 1
57+
58+ - script : ' node node_modules/vscode/bin/test'
59+ displayName : ' Run languageServer integration tests'
60+ workingDirectory : ' $(Build.SourcesDirectory)/Extension'
61+ continueOnError : true
62+ env :
63+ DISPLAY : :10
64+ CODE_TESTS_PATH : ' $(Build.SourcesDirectory)/Extension/out/test/integrationTests/languageServer'
65+ CODE_EXTENSIONS_PATH : ' $(Build.SourcesDirectory)/Extension'
66+ CODE_TESTS_WORKSPACE : ' $(Build.SourcesDirectory)/Extension/test/integrationTests/testAssets/SimpleCppProject'
67+ CODE_DISABLE_EXTENSIONS : 1
68+
69+ - task : ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
70+ displayName : ' Component Detection'
71+ continueOnError : true
0 commit comments