Skip to content

Commit c322958

Browse files
author
Sergey Shinderuk
committed
Build with PostgreSQL 18devel in Travis
1 parent 193ce08 commit c322958

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Diff for: .travis.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
dist: jammy
22
language: c
33
env:
4-
- PG_MAJOR=17 BETA=1
4+
- PG_MAJOR=18 SNAPSHOT=1
5+
- PG_MAJOR=17
56
- PG_MAJOR=16
67
- PG_MAJOR=15
78
- PG_MAJOR=14
89
- PG_MAJOR=13
9-
- PG_MAJOR=12
1010
before_script:
1111
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
12-
- echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee -a /etc/apt/sources.list
13-
- if [ -n "${BETA}" ]; then echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main ${PG_MAJOR}" | sudo tee -a /etc/apt/sources.list; fi
12+
- |
13+
if [ -n "${SNAPSHOT}" ]; then
14+
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-snapshot main ${PG_MAJOR}"
15+
elif [ -n "${BETA}" ]; then
16+
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main ${PG_MAJOR}"
17+
else
18+
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main"
19+
fi | sudo tee /etc/apt/sources.list.d/postgresql.list
20+
- |
21+
if [ -n "${SNAPSHOT}" ]; then
22+
{
23+
echo "Package: *"
24+
echo "Pin: origin apt.postgresql.org"
25+
echo "Pin-Priority: 600"
26+
} | sudo tee /etc/apt/preferences.d/pgdg.pref
27+
fi
1428
- sudo apt-get update
1529
- sudo systemctl stop postgresql
1630
- sudo apt-get install -y --no-install-recommends postgresql-client-${PG_MAJOR} postgresql-${PG_MAJOR} postgresql-server-dev-${PG_MAJOR}

0 commit comments

Comments
 (0)