-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
24 lines (22 loc) · 952 Bytes
/
azure-pipelines.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
trigger:
- '*'
pool:
name: Default
demands: LabVIEW
steps:
- task: CmdLine@2
displayName: 'Restore packages'
inputs:
script: 'LabVIEWCLI -LabVIEWPath "%LabVIEW%\LabVIEW.exe" -AdditionalOperationDirectory "$(Build.SourcesDirectory)\Toolchain" -OperationName Restore -Configuration "$(Build.SourcesDirectory)\dev.vipc"'
workingDirectory: '$(Build.SourcesDirectory)'
- task: CmdLine@2
displayName: 'Run tests'
inputs:
script: 'LabVIEWCLI -LabVIEWPath "%LabVIEW%\LabVIEW.exe" -AdditionalOperationDirectory "$(Build.SourcesDirectory)\Toolchain" -OperationName Test -Project "$(Build.SourcesDirectory)\JSONtext Object Serialization.lvproj" -ResultsFolder "$(System.DefaultWorkingDirectory)\TestResults"'
workingDirectory: '$(Build.SourcesDirectory)'
- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
failTaskOnFailedTests: true