-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline.yml
30 lines (30 loc) · 987 Bytes
/
azure-pipeline.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
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- task: InstallMATLAB@0
inputs:
release: R2020b
#- powershell: Write-Host '##vso[task.prependpath]C:\Program Files\MATLAB\R2020b\bin' # Windows agent
- bash: echo '##vso[task.prependpath]/usr/local/MATLAB/R2020b/bin' # Linux agent
- task: RunMATLABTests@0
inputs:
#sourceFolder: root;
#sourceFolder: root/folderA; root/folderB
selectByFolder: 'tests/units'
selectByTag: Unit
testResultsPDF: test-results/results.pdf
testResultsJUnit: test-results/results.xml
codeCoverageCobertura: code-coverage/coverage.xml
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: test-results/results.pdf
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: test-results/results.xml
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: code-coverage/coverage.xml