-
-
Notifications
You must be signed in to change notification settings - Fork 104
/
azure-pipelines-cli.yml
102 lines (88 loc) · 2.58 KB
/
azure-pipelines-cli.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
trigger:
- main
pool:
vmImage: 'windows-2022'
variables:
solution: 'vsprojects/pcsx-redux.sln'
buildConfiguration: 'ReleaseCLI'
steps:
- checkout: self
submodules: recursive
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
wget https://christiansoltenborn.gallerycdn.vsassets.io/extensions/christiansoltenborn/googletestadapter/0.17.1.1389/1571333606547/GoogleTestAdapter-0.17.1.vsix -OutFile GoogleTestAdapter-0.17.1.zip
- task: ExtractFiles@1
inputs:
archiveFilePatterns: 'GoogleTestAdapter-0.17.1.zip'
destinationFolder: 'GoogleTestAdapter'
cleanDestinationFolder: true
- task: CopyFiles@2
inputs:
Contents: |
LICENSE
i18n/*.po
TargetFolder: '$(build.artifactStagingDirectory)/assets'
- task: CopyFiles@2
inputs:
Contents: |
third_party/noto/*
TargetFolder: '$(build.artifactStagingDirectory)/assets/fonts'
FlattenFolders: true
- task: CopyFiles@2
inputs:
Contents: |
third_party/SDL_GameControllerDB/gamecontrollerdb.txt
TargetFolder: '$(build.artifactStagingDirectory)/assets'
FlattenFolders: true
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: 'x64'
maximumCpuCount: false
configuration: '$(buildConfiguration)'
- task: CopyFiles@2
inputs:
Contents: |
vsprojects/x64/ReleaseCLI/pcsx-redux.exe
vsprojects/x64/ReleaseCLI/crashpad_handler.exe
vsprojects/x64/ReleaseCLI/exe2elf.exe
vsprojects/x64/ReleaseCLI/exe2iso.exe
vsprojects/x64/ReleaseCLI/modconv.exe
vsprojects/x64/ReleaseCLI/ps1-packer.exe
vsprojects/x64/ReleaseCLI/psyq-obj-parser.exe
vsprojects/x64/ReleaseCLI/*.dll
TargetFolder: '$(build.artifactStagingDirectory)/binaries'
- task: CopyFiles@2
inputs:
Contents: |
vsprojects/x64/ReleaseCLI/*.pdb
TargetFolder: '$(build.artifactStagingDirectory)/pdbs'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*.exe
!**\crashpad_handler.exe
!**\exe2elf.exe
!**\exe2iso.exe
!**\modconv.exe
!**\pcsx-redux.exe
!**\pcsx-wrapper.exe
!**\pcsxrunner.exe
!**\ps1-packer.exe
!**\psyq-obj-parser.exe
!third_party\**\*.exe
searchFolder: '$(System.DefaultWorkingDirectory)'
pathtoCustomTestAdapters: 'GoogleTestAdapter'
codeCoverageEnabled: True
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'