forked from SwedbankPay/swedbank-pay-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swedbank-pay-sdk-ubuntu-Dev-CI.yml
57 lines (47 loc) · 1.38 KB
/
swedbank-pay-sdk-ubuntu-Dev-CI.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
50
51
52
53
54
55
56
57
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- develop
pool:
vmImage: 'ubuntu-latest'
variables:
GitVersion.SemVer: ''
steps:
- task: UseDotNet@2
displayName: 'Setting up framework for build'
inputs:
packageType: 'sdk'
version: '2.1.804'
installationPath: $(Agent.TempDirectory)/dotnet
- task: GitVersion@5
displayName: GitVersion
inputs:
versionSpec: '5.x'
runtime: 'core'
useConfigFile: true
configFilePath: 'GitVersion.yml'
- task: UseDotNet@2
displayName: 'Setting up framework for build'
inputs:
packageType: 'sdk'
version: '3.1.101'
installationPath: $(Agent.TempDirectory)/dotnet
- task: NuGetToolInstaller@1
#inputs:
#versionSpec: '5.3.1'
- task: NuGetCommand@2
displayName: 'Restoring packages'
inputs:
command: 'restore'
restoreSolution: '$(Build.SourcesDirectory)\src\SwedbankPay.Sdk.sln'
feedsToUse: 'select'
- task: DotNetCoreCLI@2
displayName: 'Build solution for .net core projects'
inputs:
command: 'build'
projects: |
**/SwedbankPay.Sdk.csproj
**/Sample.AspNetCore.csproj
arguments: '--configuration $(BuildConfiguration) /p:Version=$(GitVersion.NuGetVersionV2)'