forked from paypal/paypalhttp_dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
49 lines (46 loc) · 1.16 KB
/
azure-pipelines.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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: UseDotNet@2
displayName: 'Use .Net Core sdk 3.1.x'
inputs:
version: 3.1.x
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 6.x'
inputs:
version: 6.x
- task: UseDotNet@2
displayName: 'Use .Net Core sdk 7.x'
inputs:
version: 7.x
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: '**/PayPalHttp-Dotnet.sln'
arguments: '-c $(BuildConfiguration) '
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\PayPalHttp-Dotnet.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'