This repository was archived by the owner on Feb 27, 2026. It is now read-only.
forked from dlmelendez/identityserver4-azurestorage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
51 lines (47 loc) · 1.5 KB
/
azure-pipelines.yml
File metadata and controls
51 lines (47 loc) · 1.5 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'windows-latest'
steps:
- task: PowerShell@1
displayName: 'PowerShell Script'
inputs:
scriptType: inlineScript
inlineScript: '(Get-Content .\tests\Elcamino.IdentityServer4.AzureTableStorage.UnitTests\appsettings.json) | Foreach-Object { $_ -replace ''UseDevelopmentStorage=true;'', ''$(STORAGECONNECTION)'' } | Set-Content .\tests\Elcamino.IdentityServer4.AzureTableStorage.UnitTests\appsettings.json'
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 2.1.x'
inputs:
version: 2.1.x
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 3.1.x'
inputs:
version: 3.1.x
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: '**/ElCamino.IdentityServer4.AzureStorage.sln'
arguments: '-c $(BuildConfiguration) '
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\ElCamino.IdentityServer4.AzureStorage.Tests.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
- task: CopyFiles@1
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
Contents: |
**/*.dll
**/*.nupkg
**/*.snupkg
**/*.zip
**/publish/**
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'