mirror of
https://github.com/XFox111/GUTSchedule.git
synced 2026-04-22 06:58:01 +03:00
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
# Pull request validation pipeline config
|
|
|
|
trigger:
|
|
- master
|
|
|
|
pool:
|
|
vmImage: 'windows-latest'
|
|
|
|
variables:
|
|
buildConfiguration: 'Release'
|
|
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
|
|
buildPlatform: 'x86|x64|ARM'
|
|
|
|
steps:
|
|
- task: NuGetToolInstaller@1
|
|
displayName: 'Install NuGet Tool'
|
|
|
|
- task: NuGetCommand@2
|
|
displayName: 'Restore Solution'
|
|
inputs:
|
|
restoreSolution: '**/*.sln'
|
|
|
|
- task: ResharperCli@2
|
|
displayName: 'RESharper CLI Code Analyzer'
|
|
inputs:
|
|
solutionOrProjectPath: 'GUT.Schedule/GUTSchedule.sln'
|
|
failBuildLevelSelector: 'Error'
|
|
failBuildOnCodeIssues: false
|
|
|
|
- task: XamarinAndroid@1
|
|
displayName: 'Build Android'
|
|
inputs:
|
|
projectFile: '**/**.Droid.csproj'
|
|
outputDirectory: '$(outputDirectory)'
|
|
configuration: '$(buildConfiguration)'
|
|
msbuildVersionOption: 'latest'
|
|
msbuildArchitectureOption: 'x64'
|
|
jdkOption: 'JDKVersion'
|
|
|
|
- task: DownloadSecureFile@1
|
|
name: cert
|
|
displayName: 'Download PFX certificate'
|
|
inputs:
|
|
secureFile: 'GUTScheduleCert.pfx'
|
|
|
|
- task: CopyFiles@2
|
|
displayName: 'Copy PFX certificate to work folder'
|
|
inputs:
|
|
Contents: '$(cert.secureFilePath)'
|
|
TargetFolder: '$(Build.Repository.LocalPath)/GUTSchedule/GUTSchedule.UWP'
|
|
|
|
- task: VSBuild@1
|
|
displayName: 'Build UWP'
|
|
inputs:
|
|
platform: 'x64'
|
|
solution: '**/**.UWP.csproj'
|
|
configuration: '$(buildConfiguration)'
|
|
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(outputDirectory)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload' |