2018-10-01 11:31:00 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
maxParallel: 10
|
|
|
|
matrix:
|
|
|
|
node-10:
|
|
|
|
node_version: ^10.10.0
|
|
|
|
node-8:
|
|
|
|
node_version: ^8.12.0
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: $(node_version)
|
|
|
|
displayName: 'Install Node.js'
|
|
|
|
|
|
|
|
- script: |
|
2018-10-12 13:32:17 +00:00
|
|
|
yarn install
|
2018-10-01 11:31:00 +00:00
|
|
|
displayName: 'Install dependencies'
|
|
|
|
|
|
|
|
- script: |
|
2018-10-12 13:32:17 +00:00
|
|
|
yarn bootstrap
|
2018-10-01 11:31:00 +00:00
|
|
|
displayName: 'Lerna bootstrap'
|
|
|
|
|
|
|
|
- script: |
|
2018-10-12 13:32:17 +00:00
|
|
|
yarn test
|
|
|
|
displayName: 'Run tests'
|
2018-11-22 09:12:12 +00:00
|
|
|
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
displayName: 'Publish Test Results'
|
|
|
|
inputs:
|
|
|
|
testResultsFiles: '**junit*.xml'
|
|
|
|
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
|
|
|
|
|
|
|
|
- task: PublishCodeCoverageResults@1
|
|
|
|
displayName: 'Publish code coverage results'
|
|
|
|
inputs:
|
|
|
|
codeCoverageTool: 'cobertura'
|
|
|
|
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
|