forked from grumpycoders/pcsx-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-win32.yml
95 lines (81 loc) · 2.35 KB
/
azure-pipelines-win32.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
trigger:
- main
pool:
vmImage: 'windows-2022'
variables:
solution: 'vsprojects/pcsx-redux.sln'
buildConfiguration: 'Release'
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: 'x86'
maximumCpuCount: false
configuration: '$(buildConfiguration)'
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
Rename-Item -Path "vsprojects/Release/pcsx-redux.exe" -NewName "pcsx-redux.main"
Rename-Item -Path "vsprojects/Release/pcsx-wrapper.exe" -NewName "pcsx-redux.exe"
- task: CopyFiles@2
inputs:
Contents: |
vsprojects/Release/pcsx-redux.main
vsprojects/Release/pcsx-redux.exe
vsprojects/Release/*.dll
TargetFolder: '$(build.artifactStagingDirectory)/binaries'
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*.exe
!**\pcsxrunner.exe
!**\pcsx-redux.main
!**\pcsx-redux.exe
!**\psyq-obj-parser.exe
!**\ps1-packer.exe
!**\testsupport.exe
!third_party\**\*.exe
searchFolder: '$(System.DefaultWorkingDirectory)'
pathtoCustomTestAdapters: 'GoogleTestAdapter'
codeCoverageEnabled: True
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'