Y3S1-Cloud_Systems_DevOps/ThAmCo-Stock/azure-pipelines.yml

35 lines
851 B
YAML
Raw Normal View History

2020-06-09 20:21:37 +00:00
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-Stock'