-
Notifications
You must be signed in to change notification settings - Fork 35
/
.travis.yml
35 lines (35 loc) · 1.11 KB
/
.travis.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
dist: jammy
language: c
env:
- PG_MAJOR=18 SNAPSHOT=1
- PG_MAJOR=17
- PG_MAJOR=16
- PG_MAJOR=15
- PG_MAJOR=14
- PG_MAJOR=13
before_script:
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- |
if [ -n "${SNAPSHOT}" ]; then
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg-snapshot main ${PG_MAJOR}"
elif [ -n "${BETA}" ]; then
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main ${PG_MAJOR}"
else
echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main"
fi | sudo tee /etc/apt/sources.list.d/postgresql.list
- |
if [ -n "${SNAPSHOT}" ]; then
{
echo "Package: *"
echo "Pin: origin apt.postgresql.org"
echo "Pin-Priority: 600"
} | sudo tee /etc/apt/preferences.d/pgdg.pref
fi
- sudo apt-get update
- sudo systemctl stop postgresql
- sudo apt-get install -y --no-install-recommends postgresql-client-${PG_MAJOR} postgresql-${PG_MAJOR} postgresql-server-dev-${PG_MAJOR}
- sudo systemctl stop postgresql
script: ./run-tests.sh
after_script:
- cat regression.diffs
- cat logfile