35 lines
851 B
YAML
35 lines
851 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-Stock' |