Update CI
This commit is contained in:
Родитель
992d4763ca
Коммит
90b2ad6d01
|
@ -0,0 +1,25 @@
|
|||
steps:
|
||||
- pwsh: |
|
||||
$savedMSBuildExtensionsPath = $env:MSBuildExtensionsPath
|
||||
$env:MSBuildExtensionsPath = 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild'
|
||||
dotnet new sln --name=Uno.Samples.generated
|
||||
dotnet sln Uno.Samples.generated.sln add (Get-ChildItem -Recurse *.csproj)
|
||||
$env:MSBuildExtensionsPath = $savedMSBuildExtensionsPath
|
||||
|
||||
- task: UseDotNet@2
|
||||
inputs:
|
||||
packageType: 'runtime'
|
||||
version: '2.2.0'
|
||||
|
||||
- task: nventiveCanaryUpdater@5
|
||||
inputs:
|
||||
solution: Uno.Samples.generated.sln
|
||||
usePrivateFeed: false
|
||||
useNuGetOrg: true
|
||||
mergeBranch: true
|
||||
branchToMerge: 'master'
|
||||
nugetUpdaterVersion: '2.1.1'
|
||||
allowDowngrade: true
|
||||
packageAuthor: 'nventive'
|
||||
summaryFile: '$(Build.ArtifactStagingDirectory)/Summary.md'
|
||||
resultFile: '$(Build.ArtifactStagingDirectory)/Results.json'
|
29
.vsts-ci.yml
29
.vsts-ci.yml
|
@ -1,30 +1,17 @@
|
|||
jobs:
|
||||
- job: VS_Latest
|
||||
variables:
|
||||
GITVERSION.InformationalVersion: 0.1.0-PR
|
||||
GITVERSION.FullSemVer: 0.1.0-PR
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
vmImage: windows-2019
|
||||
|
||||
steps:
|
||||
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries') }}:
|
||||
- template: .vsts-ci.canaries.yml
|
||||
|
||||
- task: GitVersion@5
|
||||
inputs:
|
||||
updateAssemblyInfo: false
|
||||
|
||||
- task: NuGetToolInstaller@0
|
||||
inputs:
|
||||
versionSpec: 4.7.0
|
||||
checkLatest: false
|
||||
|
||||
- task: NuGetCommand@2
|
||||
inputs:
|
||||
command: restore
|
||||
solution: UI\**\.sln
|
||||
selectOrConfig: select
|
||||
includeNuGetOrg: true
|
||||
verbosityRestore: Normal
|
||||
|
||||
|
||||
- task: MSBuild@1
|
||||
displayName: Build Samples
|
||||
inputs:
|
||||
|
@ -32,9 +19,13 @@ jobs:
|
|||
msbuildLocationMethod: version
|
||||
msbuildVersion: latest
|
||||
msbuildArchitecture: x86
|
||||
msbuildArguments: /r /p:Configuration=Release "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(GITVERSION.FullSemVer)" "/p:InformationalVersion=$(GITVERSION.InformationalVersion)" /detailedsummary
|
||||
msbuildArguments: /r /p:Configuration=Release "/p:InformationalVersion=$(GitVersion.InformationalVersion)" /detailedsummary
|
||||
clean: false
|
||||
maximumCpuCount: true
|
||||
restoreNugetPackages: false
|
||||
logProjectEvents: false
|
||||
createLogFile: false
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathtoPublish: $(Build.ArtifactStagingDirectory)
|
Загрузка…
Ссылка в новой задаче