-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.job.cppcheck.yml
51 lines (43 loc) · 1.65 KB
/
template.job.cppcheck.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
44
45
46
47
48
49
50
51
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops&viewFallbackFrom=vsts#passing-parameters
parameters:
name: ''
vmImage: ''
displayName: ''
jobs:
- job: ${{ parameters.name }}
displayName: ${{ parameters.displayName }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
maxParallel: 2
matrix:
Win32_Release:
BuildPlatform: 'Win32'
Configuration: 'Release'
Win64_Release:
BuildPlatform: 'x64'
Configuration: 'Release'
steps:
# show environmental variables for debug.
- script: set
displayName: Show environmental variables for debug
- script: msiexec /i externals\cppcheck\cppcheck-1.84-x64-Setup.msi /quiet /qn /norestart /log cppcheck-install.log
displayName: install cppcheck
# Run cppcheck
- script: run-cppcheck.bat $(BuildPlatform) $(Configuration)
displayName: Run cppcheck
# zip files for artifacts
- script: zipArtifacts.bat $(BuildPlatform) $(Configuration)
displayName: Zip files for artifacts
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-files?view=azure-devops&tabs=yaml
- task: CopyFiles@1
displayName: Copy to ArtifactStagingDirectory
inputs:
contents: '**Log.zip'
targetFolder: $(Build.ArtifactStagingDirectory)
# see https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/build-artifacts?view=azure-devops&tabs=yaml
- task: PublishBuildArtifacts@1
displayName: Publish ArtifactStagingDirectory
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: cppcheck_$(BuildPlatform)_$(Configuration)