-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
76 lines (65 loc) · 2.39 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: $(majorVersion).$(minorVersion).$(Rev:r)
trigger:
- master
pool:
vmImage: windows-latest
variables:
buildConfiguration: Release
pathToSolutionFile: CacheMeIfYouCan.sln
pathToMainTestProject: tests/CacheMeIfYouCan.Tests/CacheMeIfYouCan.Tests.csproj
pathToCronTestProject: tests/CacheMeIfYouCan.Cron.Tests/CacheMeIfYouCan.Cron.Tests.csproj
pathToPollyTestProject: tests/CacheMeIfYouCan.Polly.Tests/CacheMeIfYouCan.Polly.Tests.csproj
pathToRedisTestProject: tests/CacheMeIfYouCan.Redis.Tests/CacheMeIfYouCan.Redis.Tests.csproj
pathToSerializersTestProject: tests/CacheMeIfYouCan.Serializers.Tests/CacheMeIfYouCan.Serializers.Tests.csproj
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: $(pathToSolutionFile)
arguments: --configuration $(buildConfiguration)
- task: DotNetCoreCLI@2
displayName: Test CacheMeIfYouCan
inputs:
command: test
projects: $(pathToMainTestProject)
arguments: --configuration $(buildConfiguration) --framework netcoreapp3.1 --no-build
- task: DotNetCoreCLI@2
displayName: Test CacheMeIfYouCan.Cron
inputs:
command: test
projects: $(pathToCronTestProject)
arguments: --configuration $(buildConfiguration) --framework netcoreapp3.1 --no-build
- task: DotNetCoreCLI@2
displayName: Test CacheMeIfYouCan.Polly
inputs:
command: test
projects: $(pathToPollyTestProject)
arguments: --configuration $(buildConfiguration) --framework netcoreapp3.1 --no-build
- task: DotNetCoreCLI@2
displayName: Test CacheMeIfYouCan.Redis
inputs:
command: test
projects: $(pathToRedisTestProject)
arguments: --configuration $(buildConfiguration) --framework netcoreapp3.1 --no-build
- task: DotNetCoreCLI@2
displayName: Test Serializers
inputs:
command: test
projects: $(pathToSerializersTestProject)
arguments: --configuration $(buildConfiguration) --framework netcoreapp3.1 --no-build
- task: DotNetCoreCLI@2
displayName: Create Packages
inputs:
command: pack
packagesToPack: 'src/**/*.csproj'
versioningScheme: byBuildNumber
arguments: --configuration $(buildConfiguration) --no-build
- task: NuGetCommand@2
displayName: Publish Packages
inputs:
command: push
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
feedsToUse: select
nuGetFeedType: internal
publishVstsFeed: Default