Skip to content

Commit

Permalink
Merge pull request #288 from sjkp/pack-corev2
Browse files Browse the repository at this point in the history
Update azure-pipelines.yml for Azure Pipelines
  • Loading branch information
sjkp authored Jan 20, 2019
2 parents 88b04e4 + 0deb88b commit e31a92a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,30 @@ variables:
buildConfiguration: 'Release'

steps:
- task: DotNetCoreInstaller@0
displayName: install dotnet 2.1.401
inputs:
packageType: 'sdk'
version: '2.1.401'

- script: dotnet build LetsEncrypt.Azure.DotNetCore.sln --configuration $(buildConfiguration)
displayName: 'dotnet build LetsEncrypt.Azure.DotNetCore.sln $(buildConfiguration)'

- task: DotNetCoreCLI@2
displayName: dotnet test
inputs:
command: test
projects: 'test/**/*.csproj'

- task: DotNetCoreCLI@2
displayName: dotnet pack
inputs:
command: pack
packagesToPack: 'LetsEncrypt.Azure.Core.V2/*.csproj'
packDirectory: '$(Build.ArtifactStagingDirectory)/packages'

- task: PublishBuildArtifacts@1
displayName: publish artifacts
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'

0 comments on commit e31a92a

Please sign in to comment.