-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
127 lines (120 loc) · 6.69 KB
/
.gitlab-ci.yml
File metadata and controls
127 lines (120 loc) · 6.69 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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
build-debian13-pgdg-17:
image: "debian:trixie"
before_script:
- DEBIAN_FRONTEND=noninteractive apt -y update
- DEBIAN_FRONTEND=noninteractive apt -y install gpg curl lsb-release
- echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
- curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc| gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
- DEBIAN_FRONTEND=noninteractive apt -y update
- DEBIAN_FRONTEND=noninteractive apt -y install libscrypt-dev libargon2-dev gcc make libssl-dev meson
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-17 postgresql-17
script:
- pg_ctlcluster 17 main start
- su postgres -c "PATH=/usr/lib/postgresql/17/bin:$PATH meson setup build17"
- su postgres -c "ninja -C build17"
- ninja -C build17 install
- su postgres -c "ninja -C build17 test || (cat /builds/consulting/pgxcrypto_pwhash/build17/regression.diffs && exit 1)"
- pg_ctlcluster 17 main stop --force
- pg_dropcluster 17 main
build-debian12-pgdg:
image: "debian:12"
before_script:
- DEBIAN_FRONTEND=noninteractive apt -y update
- DEBIAN_FRONTEND=noninteractive apt -y install gpg curl lsb-release
- echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
- curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc| gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
- DEBIAN_FRONTEND=noninteractive apt -y update
- DEBIAN_FRONTEND=noninteractive apt -y install libscrypt-dev libargon2-dev gcc make libssl-dev meson
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-17 postgresql-17
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-16 postgresql-16
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-15 postgresql-15
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-14 postgresql-14
- DEBIAN_FRONTEND=noninteractive apt -y install postgresql-server-dev-13 postgresql-13
script:
- pg_ctlcluster 17 main start
- su postgres -c "PATH=/usr/lib/postgresql/17/bin:$PATH meson setup build17"
- su postgres -c "ninja -C build17"
- ninja -C build17 install
- su postgres -c "ninja -C build17 test || (cat /builds/consulting/pgxcrypto_pwhash/build17/regression.diffs && exit 1)"
- pg_ctlcluster 17 main stop --force
- pg_dropcluster 17 main
- pg_createcluster -p 5432 16 main
- pg_ctlcluster 16 main start
- su postgres -c "PATH=/usr/lib/postgresql/16/bin:$PATH meson setup build16"
- su postgres -c "ninja -C build16"
- ninja -C build16 install
- su postgres -c "ninja -C build16 test || (cat /builds/consulting/pgxcrypto_pwhash/build16/regression.diffs && exit 1)"
- pg_ctlcluster 16 main stop --force
- pg_dropcluster 16 main
- pg_createcluster -p 5432 15 main
- pg_ctlcluster 15 main start
- su postgres -c "PATH=/usr/lib/postgresql/15/bin:$PATH meson setup build15"
- su postgres -c "ninja -C build15"
- ninja -C build15 install
- su postgres -c "ninja -C build15 test || (cat /builds/consulting/pgxcrypto_pwhash/build15/regression.diffs && exit 1)"
- pg_ctlcluster 15 main stop --force
- pg_dropcluster 15 main
- pg_createcluster -p 5432 14 main
- pg_ctlcluster 14 main start
- su postgres -c "PATH=/usr/lib/postgresql/14/bin:$PATH meson setup build14"
- su postgres -c "ninja -C build14"
- ninja -C build14 install
- su postgres -c "ninja -C build14 test || (cat /builds/consulting/pgxcrypto_pwhash/build14/regression.diffs && exit 1)"
- pg_ctlcluster 14 main stop --force
- pg_dropcluster 14 main
- pg_createcluster -p 5432 13 main
- pg_ctlcluster 13 main start
- su postgres -c "PATH=/usr/lib/postgresql/13/bin:$PATH meson setup build13"
- su postgres -c "ninja -C build13"
- ninja -C build13 install
- su postgres -c "ninja -C build13 test || (cat /builds/consulting/pgxcrypto_pwhash/build13/regression.diffs && exit 1)"
- pg_ctlcluster 13 main stop --force
- pg_dropcluster 13 main
build-rocky8-pgdg-17:
image: "rockylinux/rockylinux:8"
before_script:
- dnf -y install epel-release
- dnf -y --enablerepo powertools install meson gcc libscrypt-devel libargon2-devel openssl-devel
- dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- dnf -qy module disable postgresql
- dnf -y update --refresh
- dnf -y install --enablerepo powertools postgresql17-server postgresql17-devel
- su - postgres -c "/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/data"
script:
- su - postgres -c "/usr/pgsql-17/bin/pg_ctl -D /var/lib/pgsql/17/data start"
- su postgres -c "PATH=$PATH:/usr/pgsql-17/bin/ meson setup build"
- su postgres -c "ninja -C build"
- ninja -C build install
- su postgres -c "ninja -C build test || (cat /builds/consulting/pgxcrypto_pwhash/build/regression.diffs && exit 1)"
build-rocky9-pgdg-17:
image: "rockylinux/rockylinux:9"
before_script:
- dnf -y install epel-release
- dnf -y config-manager --set-enabled crb
- dnf -y install meson gcc libscrypt-devel libargon2-devel openssl-devel
- dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- dnf -qy module disable postgresql
- dnf -y update --refresh
- dnf -y install postgresql17-server postgresql17-devel
- su - postgres -c "/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/data"
script:
- su - postgres -c "/usr/pgsql-17/bin/pg_ctl -D /var/lib/pgsql/17/data start"
- su postgres -c "PATH=$PATH:/usr/pgsql-17/bin/ meson setup build"
- su postgres -c "ninja -C build"
- ninja -C build install
- su postgres -c "ninja -C build test || (cat /builds/consulting/pgxcrypto_pwhash/build/regression.diffs && exit 1)"
build-rocky10-pgdg-17:
image: "rockylinux/rockylinux:10"
before_script:
- dnf -y install epel-release
- dnf -y config-manager --set-enabled crb
- dnf -y install meson gcc libargon2-devel openssl-devel
- dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-10-x86_64/pgdg-redhat-repo-latest.noarch.rpm
- dnf -y install postgresql17-server postgresql17-devel
- su - postgres -c "/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/data"
script:
- su - postgres -c "/usr/pgsql-17/bin/pg_ctl -D /var/lib/pgsql/17/data start"
- su postgres -c "PATH=$PATH:/usr/pgsql-17/bin/ meson setup build"
- su postgres -c "ninja -C build"
- ninja -C build install
- su postgres -c "ninja -C build test || (cat /builds/consulting/pgxcrypto_pwhash/build/regression.diffs && exit 1)"