-
Notifications
You must be signed in to change notification settings - Fork 28
/
azure-pipelines-3.yml
55 lines (46 loc) · 1.2 KB
/
azure-pipelines-3.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
pool:
vmImage: 'ubuntu-16.04'
strategy:
matrix:
DotNetCore22:
containerImage: mcr.microsoft.com/dotnet/core/sdk:2.2
DotNetCore22Nightly:
containerImage: mcr.microsoft.com/dotnet/core-nightly/sdk:2.2
container: $[ variables['containerImage'] ]
resources:
containers:
- container: redis
image: redis
services:
redis: redis
variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration release'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '**/*Tests.csproj'
arguments: '--configuration release'
env:
CONNECTIONSTRINGS_REDIS: redis:6379
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
projects: 'MyProject/MyProject.csproj'
publishWebProjects: false
zipAfterPublish: false
arguments: '--configuration release'
- task: PublishPipelineArtifact@0
displayName: Store artefact
inputs:
artifactName: 'MyProject'
targetPath: 'MyProject/bin/release/netcoreapp2.2/publish/'
condition: and(succeeded(), endsWith(variables['Agent.JobName'], 'DotNetCore22'))