forked from caolan/async
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines-steps.yml
43 lines (35 loc) · 1.19 KB
/
.azure-pipelines-steps.yml
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
# Build steps common to all platforms
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: 'Install Node.js'
- task: Npm@1
inputs:
command: custom
customCommand: install -g npm
displayName: 'Update npm'
condition: eq(variables['node_version'], '6.x')
- script: npm ci
displayName: 'Install dependencies'
- bash: npm test -- -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test-results.xml
displayName: 'Run tests'
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/test-results.xml'
testRunTitle: $(os_name) Node $(node_version)
displayName: 'Publishing the test results'
condition: always()
- bash: npm run mocha-browser-test -- --browsers $(browser_name) --reporters junit
displayName: 'Run browser tests'
condition: variables.run_browser_tests
continueOnError: true
- task: PublishTestResults@2
inputs:
testResultsFiles: '**/browser-test-results.xml'
testRunTitle: $(os_name) Node $(node_version) Browser tests
displayName: 'Publishing the browser test results'
condition: variables.run_browser_tests
- bash: npm run coveralls
displayName: 'Run coveralls'
condition: variables.run_coveralls