2018-10-03 15:40:41 +03:00
|
|
|
# Licensed to the .NET Foundation under one or more agreements.
|
|
|
|
# The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
# See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
# Nightly build for Windows. Tests on x86 and x64. Produces NuGet packages
|
|
|
|
|
|
|
|
name: 0.3.$(Date:yyMM).$(Date:dd)$(Rev:rr)
|
|
|
|
|
|
|
|
resources:
|
|
|
|
- repo: self
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
trigger: none # disable CI build
|
2018-10-18 12:04:26 +03:00
|
|
|
|
|
|
|
queue:
|
|
|
|
name: Hosted VS2017
|
|
|
|
timeoutInMinutes: 120
|
|
|
|
|
2018-10-03 15:40:41 +03:00
|
|
|
steps:
|
|
|
|
- task: Bash@3
|
|
|
|
displayName: 'Updating assembly versions'
|
|
|
|
inputs:
|
|
|
|
filePath: build/updateversion.sh
|
|
|
|
workingDirectory: build
|
|
|
|
arguments: $(Build.BuildNumber)
|
|
|
|
|
|
|
|
- task: NuGetToolInstaller@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '4.7.0'
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Restoring NuGet packages'
|
|
|
|
inputs:
|
|
|
|
command: 'restore'
|
|
|
|
restoreSolution: '**/*.sln'
|
|
|
|
|
|
|
|
- task: MSBuild@1
|
|
|
|
displayName: 'Building solutions'
|
|
|
|
inputs:
|
|
|
|
solution: '**/*.sln'
|
|
|
|
clean: true
|
|
|
|
configuration: $(BuildConfiguration)
|
|
|
|
|
|
|
|
- template: vstest-fast.yml
|
|
|
|
parameters:
|
|
|
|
Platform: 'x64'
|
|
|
|
|
|
|
|
- template: vstest-fast.yml
|
|
|
|
parameters:
|
|
|
|
Platform: 'x86'
|
|
|
|
|
2018-10-10 16:47:16 +03:00
|
|
|
- template: evaluator-netcore.yml
|
|
|
|
parameters:
|
|
|
|
Configuration: '$(BuildConfiguration)'
|
|
|
|
|
|
|
|
- template: evaluator-netframework.yml
|
|
|
|
parameters:
|
|
|
|
Configuration: '$(BuildConfiguration)'
|
|
|
|
|
2018-10-03 15:40:41 +03:00
|
|
|
- task: Bash@3
|
|
|
|
displayName: 'Gathering built assemblies'
|
|
|
|
condition: eq(variables['BuildConfiguration'], 'Release')
|
|
|
|
inputs:
|
|
|
|
filePath: build/copyassemblies.sh
|
|
|
|
arguments: ../bin $(BuildConfiguration)
|
|
|
|
workingDirectory: build
|
|
|
|
|
|
|
|
- task: NuGetCommand@2
|
|
|
|
displayName: 'Creating NuGet packages'
|
|
|
|
condition: eq(variables['BuildConfiguration'], 'Release')
|
|
|
|
inputs:
|
|
|
|
command: pack
|
|
|
|
packagesToPack: build/*.nuspec
|
|
|
|
includeSymbols: true
|
|
|
|
buildProperties: version=$(Build.BuildNumber);bin=../bin
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Copying build artifacts'
|
|
|
|
condition: eq(variables['BuildConfiguration'], 'Release')
|
|
|
|
inputs:
|
|
|
|
sourceFolder: bin
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: 'Publishing build artifacts'
|
|
|
|
condition: eq(variables['BuildConfiguration'], 'Release')
|
|
|
|
inputs:
|
|
|
|
artifactName: 'Everything'
|