-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
51 lines (47 loc) · 1.27 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
trigger:
branches:
include: ['*']
exclude: [v1, v2, oldv3]
paths:
include: ['*']
exclude:
- README.md
- docs/*
- ItemTemplates/*
pr:
branches:
include: [master]
pool:
vmImage: ubuntu-16.04
variables:
DotNetCoreSdkVersion: '2.2.103'
BuildConfiguration: Release
steps:
- task: DotNetCoreInstaller@0
inputs:
version: $(DotNetCoreSdkVersion)
- task: DotNetCoreCLI@2
displayName: Build analyzers
inputs:
command: build
projects: Analyzers/**/*.csproj
- task: DotNetCoreCLI@2
displayName: Build ImgAzyobuziNet.Core
inputs:
command: build
projects: ImgAzyobuziNet.Core/ImgAzyobuziNet.Core.csproj
- task: DotNetCoreCLI@2
displayName: Run tests
inputs:
command: test
projects: TestProjects/ImgAzyobuziNet.Core.Test/ImgAzyobuziNet.Core.Test.csproj
arguments: --filter TestCategory=Static
- task: DotNetCoreCLI@2
displayName: Build Azure Functions project
inputs:
command: publish
publishWebProjects: false
projects: ImgAzyobuziNet.AzureFunctions/ImgAzyobuziNet.AzureFunctions.csproj
arguments: --configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)
zipAfterPublish: true
- task: PublishBuildArtifacts@1