forked from joskraps/short-guid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.yml
31 lines (28 loc) · 959 Bytes
/
pipeline.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
pool:
vmImage: vs2017-win2016
variables:
buildConfiguration: Release
steps:
- script: >
dotnet build --configuration $(buildConfiguration)
dotnet test ShortGuid.Tests --configuration $(buildConfiguration) --logger
trx
dotnet publish --configuration $(buildConfiguration) --output
$(Build.ArtifactStagingDirectory) --framework net46
dotnet publish --configuration $(buildConfiguration) --output
$(Build.ArtifactStagingDirectory) --framework netcoreapp2.1
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: VSTest
testResultsFiles: '**/*.trx'
- task: DotNetCoreCLI@2
condition: succeededOrFailed()
inputs:
command: pack
configuration: $(buildConfiguration)
packagesToPack: '**/ShortGuid.csproj'
versioningScheme: byEnvVar
versionEnvVar: Build.BuildNumber
verbosityPack: detailed
- task: PublishBuildArtifacts@1