-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregular-pipeline.yaml
More file actions
55 lines (46 loc) · 1.06 KB
/
Copy pathregular-pipeline.yaml
File metadata and controls
55 lines (46 loc) · 1.06 KB
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
# NpgsqlAnalyzers regular pipeline
# This pipeline is triggered for all regular branches, including /dev, and
# ensures delivery of proper builds.
name: 'CI pipeline'
resources:
containers:
- container: postgres
image: postgres
ports:
- 5432:5432
env:
POSTGRES_DB: 'postgres'
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'postgres'
services:
postgres: postgres
variables:
SrcDir: '$(Build.SourcesDirectory)/src'
BuildDir: '$(Build.BinariesDirectory)/publish'
trigger:
branches:
include:
- '*'
paths:
include:
- src/*
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NuGetCommand@2
displayName: 'Restore packages'
inputs:
command: 'restore'
restoreSolution: '$(SrcDir)/NpgsqlAnalyzers.sln'
feedsToUse: 'select'
- script: >
dotnet build
--configuration Release
--output '$(BuildDir)'
'$(SrcDir)/NpgsqlAnalyzers.sln'
displayName: 'Build solution'
- script: >
dotnet test
--configuration Release
'$(SrcDir)/NpgsqlAnalyzers.sln'
displayName: 'Run tests'