-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
33 lines (30 loc) · 1.04 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: '1.0.2.$(BuildID)'
pool:
vmImage: 'vs2017-win2016'
trigger:
branches:
include: [ 'master' ]
variables:
buildConfiguration: 'Release'
steps:
- script: dotnet build --configuration $(buildConfiguration)
displayName: 'Build'
workingDirectory: '$(Build.SourcesDirectory)/ProcessMyMedia/'
- script: dotnet test --configuration $(buildConfiguration) --logger:trx
displayName: 'Test'
workingDirectory: '$(Build.SourcesDirectory)/ProcessMyMedia.Tests/'
- task: PublishTestResults@2
displayName: 'Publish Test Result'
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '**/*.trx'
buildConfiguration: $(buildConfiguration)
publishRunAttachments: true
- script: dotnet pack /p:Version=$(Build.BuildNumber) --configuration $(buildConfiguration)
displayName: 'Pack'
workingDirectory: '$(Build.SourcesDirectory)/ProcessMyMedia/'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifact'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/ProcessMyMedia/bin/$(buildConfiguration)/'
artifactName: 'drop'