Y3S1-Cloud_Systems_DevOps/ThAmCo-Products/azure-pipelines.yml
2020-06-09 21:21:37 +01:00

35 lines
854 B
YAML

trigger:
- master
- develop
pr:
- master
- develop
pool: Default
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'Building $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Testing $(buildConfiguration)'
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publishing $(buildConfiguration)'
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(buildConfiguration) --output "$(Build.ArtifactStagingDirectory)"'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'Storing Build Artifact'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'ThAmCo-Products'