continuous-build-win32.yml 2.0 KB
Newer Older
1 2 3
steps:
- task: NodeTool@0
  inputs:
4
    versionSpec: "12.13.0"
5 6
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
  inputs:
I
isidor 已提交
7
    versionSpec: "1.x"
J
Joao Moreno 已提交
8 9 10 11
- task: UsePythonVersion@0
  inputs:
    versionSpec: '2.x'
    addToPath: true
J
Joao Moreno 已提交
12 13
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
  inputs:
14
    keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
J
Joao Moreno 已提交
15
    targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
J
Joao Moreno 已提交
16
    vstsFeed: 'vscode-build-cache'
17
- powershell: |
18
    yarn --frozen-lockfile
J
Joao Moreno 已提交
19 20
  env:
    CHILD_CONCURRENCY: "1"
21
  displayName: Install Dependencies
J
Joao Moreno 已提交
22
  condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
J
Joao Moreno 已提交
23 24
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
  inputs:
25
    keyfile: '.yarnrc, remote/.yarnrc, **/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock'
J
Joao Moreno 已提交
26
    targetfolder: '**/node_modules, !**/node_modules/**/node_modules'
J
Joao Moreno 已提交
27
    vstsFeed: 'vscode-build-cache'
J
Joao Moreno 已提交
28
  condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
29
- powershell: |
J
Joao Moreno 已提交
30
    yarn electron
31
- script: |
J
Johannes Rieken 已提交
32
    yarn gulp hygiene
33 34
  displayName: Run Hygiene Checks
- powershell: |
J
Joao Moreno 已提交
35
    yarn monaco-compile-check
36
  displayName: Run Monaco Editor Checks
37
- script: |
38 39
    yarn valid-layers-check
  displayName: Run Valid Layers Checks
40
- powershell: |
J
Joao Moreno 已提交
41
    yarn compile
42 43
  displayName: Compile Sources
- powershell: |
J
Joao Moreno 已提交
44
    yarn download-builtin-extensions
45 46
  displayName: Download Built-in Extensions
- powershell: |
J
Joao Moreno 已提交
47
    .\scripts\test.bat --tfs "Unit Tests"
48
  displayName: Run Unit Tests
49
- powershell: |
J
d'oh  
Johannes Rieken 已提交
50
    yarn test-browser
51
  displayName: Run Unit Tests (Browser)
52
- powershell: |
J
Joao Moreno 已提交
53
    .\scripts\test-integration.bat --tfs "Integration Tests"
54 55 56 57 58 59 60
  displayName: Run Integration Tests
- task: PublishTestResults@2
  displayName: Publish Tests Results
  inputs:
    testResultsFiles: '*-results.xml'
    searchFolder: '$(Build.ArtifactStagingDirectory)/test-results'
  condition: succeededOrFailed()