forked from MichalJankowskii/Moq.EntityFrameworkCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
47 lines (44 loc) · 1.15 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
trigger:
branches:
include:
- master
paths:
include:
- src/*
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
efVersion: '5.0.0'
versionBuildNumber: $[counter('5.0.0', 1)]
packageVersion: $(efVersion).$(versionBuildNumber)
steps:
- bash: echo $(packageVersion)
displayName: Print version
- task: DotNetCoreCLI@2
displayName: 'Building'
inputs:
command: 'build'
projects: 'src/Moq.EntityFrameworkCore.sln'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Testing'
inputs:
command: 'test'
projects: 'src/Moq.EntityFrameworkCore.sln'
arguments: '--configuration $(buildConfiguration)'
publishTestResults: false
testRunTitle: 'Testing'
- task: DotNetCoreCLI@2
displayName: "Packing"
inputs:
command: 'pack'
packagesToPack: 'src/Moq.EntityFrameworkCore/Moq.EntityFrameworkCore.csproj'
versioningScheme: byEnvVar
versionEnvVar: packageVersion
- task: PublishBuildArtifacts@1
displayName: 'Publishing'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'package'
publishLocation: 'Container'