-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
103 lines (87 loc) · 2.49 KB
/
azure-pipelines.yml
File metadata and controls
103 lines (87 loc) · 2.49 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
trigger:
- master
jobs:
- job: Windows
timeoutInMinutes: 15
strategy:
matrix:
# Node6:
# nodejs_version: "6"
Node8:
nodejs_version: "8"
maxParallel: 2
pool:
vmImage: vs2017-win2016
steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodejs_version)
- powershell: |
npm config set spin false
npm install
displayName: Install
- script: |
node --version
call npm --version
call npm run test:bin -- --reporter=xunit --reporter-options output=results-bin.xml
call npm run test:command -- --reporter=xunit --reporter-options output=results-command.xml
displayName: Test
continueOnError: true
enabled: false
- script: |
call npm run test:acceptance -- --reporter=xunit --reporter-options output=results-acceptance.xml
displayName: Test:acceptance
continueOnError: true
- script: |
more C:\npm\cache\_logs\*.log
displayName: Show npm logs
continueOnError: true
- script: |
call npm run test:integration -- --reporter=xunit --reporter-options output=results-integration.xml
displayName: Test:integration
continueOnError: true
enabled: false
- script: |
call npm run test:unit -- --reporter=xunit --reporter-options output=results-unit.xml
displayName: Test:unit
continueOnError: true
enabled: false
- task: PublishTestResults@2
displayName: Publish Tests Results
inputs:
testResultsFiles: 'results-*.xml'
testResultsFormat: XUnit
searchFolder: '$(Build.SourcesDirectory)'
condition: succeededOrFailed()
# - job: Linux
# strategy:
# matrix:
# Node6:
# nodejs_version: "6"
# Node8:
# nodejs_version: "8"
# maxParallel: 2
# pool:
# vmImage: ubuntu-16.04
# steps:
# - task: NodeTool@0
# inputs:
# versionSpec: $(nodejs_version)
# - bash: |
# npm config set spin false
# npm install
# displayName: Install
# - script: |
# node --version
# npm --version
# npm run test:bin -- --reporter=xunit --reporter-options output=results-bin.xml
# npm run test:command -- --reporter=xunit --reporter-options output=results-command.xml
# displayName: Test
# continueOnError: true
# - task: PublishTestResults@2
# displayName: Publish Tests Results
# inputs:
# testResultsFiles: 'results-*.xml'
# testResultsFormat: XUnit
# searchFolder: '$(Build.SourcesDirectory)'
# condition: succeededOrFailed()