зеркало из https://github.com/Azure/ms-rest-js.git
39 строки
1.1 KiB
YAML
39 строки
1.1 KiB
YAML
parameters:
|
|
nodeVersion: ''
|
|
|
|
jobs:
|
|
- job: 'testOn${{parameters.nodeVersion}}'
|
|
pool:
|
|
vmImage: 'Ubuntu 16.04'
|
|
dependsOn: Build
|
|
condition: succeeded()
|
|
steps:
|
|
- script: 'sudo apt-get update'
|
|
displayName: 'sudo apt-get update'
|
|
- script: 'sudo apt install chromium-browser'
|
|
displayName: 'sudo apt install chromium-browser'
|
|
- task: NodeTool@0
|
|
displayName: 'Install Node ${{parameters.nodeVersion}}'
|
|
inputs:
|
|
versionSpec: '${{parameters.nodeVersion}}.x'
|
|
- task: Npm@1
|
|
displayName: 'npm install'
|
|
inputs:
|
|
verbose: false
|
|
- task: Npm@1
|
|
displayName: 'npm test'
|
|
inputs:
|
|
command: custom
|
|
verbose: false
|
|
customCommand: test
|
|
- task: PublishTestResults@2
|
|
inputs:
|
|
testResultsFiles: '$(System.DefaultWorkingDirectory)/test-results.xml'
|
|
testRunTitle: 'Test results for JavaScript'
|
|
- task: PublishCodeCoverageResults@1
|
|
inputs:
|
|
codeCoverageTool: Cobertura
|
|
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
|
|
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/'
|
|
failIfCoverageEmpty: true
|