wzp
2021-05-13 7d694a9113118daec5be7ac224dab46a3b20f106
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pool:
  vmImage: 'ubuntu-16.04'
 
strategy:
  matrix:
    node_6_x:
      node_version: 6.x
    node_8_x:
      node_version: 8.x
    node_10_x:
      node_version: 10.x
    node_11_x:
      node_version: 11.x
 
steps:
  - task: NodeTool@0
    inputs:
      versionSpec: $(node_version)
    displayName: Install Node.js
 
  - bash: npm install
    displayName: Install dependencies
 
  - bash: npm run test:lint
    displayName: Linter
 
  - bash: npm run test:typescript
    displayName: Typings
 
  - bash: npm run test:report && npm run test:reporter
    displayName: Test
 
  - task: PublishTestResults@2
    displayName: "Publish Test Results"
    condition: succeededOrFailed()
    inputs:
      testResultsFiles: "**test/junit-testresults.xml"
      testRunTitle: TestRun $(node_version)
 
  - task: PublishCodeCoverageResults@1
    displayName: "Publish code coverage results"
    condition: succeeded()
    inputs:
      codeCoverageTool: "cobertura"
      summaryFileLocation: "**/coverage/cobertura-coverage.xml"