forked from JasperFx/marten
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
93 lines (89 loc) · 2.47 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
trigger:
batch: true
branches:
include:
- master
pr:
- master
resources:
containers:
- container: pg12
image: oskardudycz/postgres-plv8:12-2
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
NAMEDATALEN: 150
- container: pg11
image: ionx/postgres-plv8:11.5
ports:
- 5432:5432
env:
NAMEDATALEN: 150
- container: pg10
image: ionx/postgres-plv8:10.6
ports:
- 5432:5432
env:
NAMEDATALEN: 150
- container: pg9_6
image: mysticmind/postgres-plv8:9.6-1.4
ports:
- 5432:5432
env:
NAMEDATALEN: 150
variables:
config: Release
disable_test_parallelization: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
dotnet_version: '7.x'
node_version: 16.x
pg_db: marten_testing
marten_testing_database: "Host=localhost;Port=5432;Database=marten_testing;Username=postgres;Password=Password12!"
jobs:
- job: build_net6
# timeoutInMinutes: 20
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
pg9_6:
postgresService: pg9_6
serializer: Newtonsoft
pg10:
postgresService: pg10
serializer: Newtonsoft
pg11:
postgresService: pg11
serializer: Newtonsoft
pg12:
postgresService: pg12
serializer: Newtonsoft
pg12_SystemTextJson:
postgresService: pg12
serializer: SystemTextJson
services:
postgres: $[ variables['postgresService'] ]
steps:
- task: UseDotNet@2
displayName: Install .NET 7.0.x
inputs:
packageType: 'sdk'
version: '7.x'
- task: NodeTool@0
displayName: Install Node.js
inputs:
versionSpec: $(node_version)
- script: |
PG_CONTAINER_NAME=$(docker ps --filter expose=5432/tcp --format {{.Names}})
docker exec $PG_CONTAINER_NAME psql -U postgres -c "create database $(pg_db);"
docker exec $PG_CONTAINER_NAME psql -U postgres -d $(pg_db) -c "create extension if not exists plv8;"
docker exec $PG_CONTAINER_NAME psql -U postgres -c "DO 'plv8.elog(NOTICE, plv8.version);' LANGUAGE plv8;"
displayName: Create db and add plv8 extension
- script: |
./build.sh --no-color ci
./build.sh --no-color test-extension-libs
displayName: Build
env:
DEFAULT_SERIALIZER: $(serializer)