|
7 | 7 | sudo chmod +x /etc/init.d/xvfb |
8 | 8 | sudo update-rc.d xvfb defaults |
9 | 9 | sudo service xvfb start |
| 10 | +
|
10 | 11 | - task: NodeTool@0 |
11 | 12 | inputs: |
12 | 13 | versionSpec: "12.13.0" |
| 14 | + |
13 | 15 | - task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2 |
14 | 16 | inputs: |
15 | 17 | versionSpec: "1.x" |
| 18 | + |
16 | 19 | - task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 |
17 | 20 | inputs: |
18 | 21 | keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' |
19 | 22 | targetfolder: '**/node_modules, !**/node_modules/**/node_modules' |
20 | 23 | vstsFeed: 'vscode-build-cache' |
| 24 | + |
21 | 25 | - script: | |
22 | 26 | CHILD_CONCURRENCY=1 yarn --frozen-lockfile |
23 | 27 | displayName: Install Dependencies |
24 | 28 | condition: and(succeeded(), ne(variables['CacheRestored'], 'true')) |
| 29 | + |
25 | 30 | - task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1 |
26 | 31 | inputs: |
27 | 32 | keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' |
28 | 33 | targetfolder: '**/node_modules, !**/node_modules/**/node_modules' |
29 | 34 | vstsFeed: 'vscode-build-cache' |
30 | 35 | condition: and(succeeded(), ne(variables['CacheRestored'], 'true')) |
| 36 | + |
31 | 37 | - script: | |
32 | 38 | yarn electron x64 |
33 | 39 | displayName: Download Electron |
| 40 | + |
34 | 41 | - script: | |
35 | 42 | yarn gulp hygiene |
36 | 43 | displayName: Run Hygiene Checks |
| 44 | + |
37 | 45 | - script: | |
38 | 46 | yarn monaco-compile-check |
39 | 47 | displayName: Run Monaco Editor Checks |
| 48 | + |
40 | 49 | - script: | |
41 | 50 | yarn valid-layers-check |
42 | 51 | displayName: Run Valid Layers Checks |
| 52 | + |
43 | 53 | - script: | |
44 | 54 | yarn compile |
45 | 55 | displayName: Compile Sources |
| 56 | + |
46 | 57 | - script: | |
47 | 58 | yarn download-builtin-extensions |
48 | 59 | displayName: Download Built-in Extensions |
| 60 | + |
49 | 61 | - script: | |
50 | 62 | DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests" |
51 | 63 | displayName: Run Unit Tests (Electron) |
| 64 | + |
52 | 65 | - script: | |
53 | 66 | DISPLAY=:10 yarn test-browser --browser chromium |
54 | 67 | displayName: Run Unit Tests (Browser) |
| 68 | + |
55 | 69 | - script: | |
56 | 70 | DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests" |
57 | 71 | displayName: Run Integration Tests (Electron) |
| 72 | + |
| 73 | +- task: PublishPipelineArtifact@0 |
| 74 | + inputs: |
| 75 | + artifactName: crash-dump-linux |
| 76 | + targetPath: .build/crashes |
| 77 | + displayName: 'Publish Crash Reports' |
| 78 | + condition: succeededOrFailed() |
| 79 | + |
58 | 80 | - task: PublishTestResults@2 |
59 | 81 | displayName: Publish Tests Results |
60 | 82 | inputs: |
|
0 commit comments