forked from csgsolutions/Csg.Extensions.Testing.SqlLocalDb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
31 lines (31 loc) · 964 Bytes
/
azure-pipelines.yml
File metadata and controls
31 lines (31 loc) · 964 Bytes
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
name: $(Rev:rrrrr)
pool:
name: CSG OnPrem VS2019
trigger:
- master
- rel/*
steps:
- task: PowerShell@1
displayName: 'Build + Test'
inputs:
scriptName: build.ps1
arguments: '-BuildNumber $(Build.BuildNumber) -NoTest'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: 'tests\**\*Test.csproj'
arguments: '--no-build --configuration Release'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts-classlib'
inputs:
PathtoPublish: src/Csg.Extensions.Testing.SqlLocalDb/bin/Release
ArtifactName: classlib
- powershell: |
$BuildNumber=$env:BUILD_BUILDNUMBER
[xml]$xml = Get-Content .\version.props
$versionPrefix = $xml.Project.PropertyGroup.VersionPrefix
$versionSuffix = $xml.Project.PropertyGroup.VersionSuffix[0]
Write-Output "##vso[build.updatebuildnumber]$versionPrefix-$versionSuffix-$BuildNumber"
displayName: 'Set Build Number'
condition: succeededOrFailed()