Skip to content

Commit 0d16893

Browse files
committed
Modernize Perl and PostgreSQL versions
Add PostgreSQL 11, 12, and 13. Run tests on focal. Upgrade to Perl 5.30, and bump lowest supported Perl version to 5.14 (oldest version supported on focal).
1 parent d3812fe commit 0d16893

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.travis.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
---
33
# versions to run on
44
env:
5+
- PGVERSION=13
6+
- PGVERSION=12
7+
- PGVERSION=11
58
- PGVERSION=10
69
- PGVERSION=9.6
710
- PGVERSION=9.5
@@ -12,25 +15,20 @@ env:
1215
- PGVERSION=9.0
1316
- PGVERSION=8.4
1417

15-
dist: trusty
18+
dist: focal
1619
sudo: required
1720
language: perl
1821
perl:
19-
- '5.8' # 5.8.8 is shipped with RHEL 5, also oldest version supported by Travis
20-
- '5.24'
22+
- '5.30'
23+
- '5.14' # 5.14 is shipped with Ubuntu precise (12.04), also oldest version supported by Travis on focal
2124

2225
before_install:
2326
- sudo apt-get -qq update
2427

2528
install:
26-
# install PostgreSQL $PGVERSION if not there yet
27-
- |
28-
if [ ! -x /usr/lib/postgresql/$PGVERSION/bin/postgres ]; then
29-
sudo apt-get install postgresql-common
30-
sudo /etc/init.d/postgresql stop # travis wants only one version running
31-
sudo apt-get install postgresql-contrib-$PGVERSION
32-
fi
33-
- sudo /etc/init.d/postgresql stop
29+
# upgrade postgresql-common for new apt.postgresql.org.sh
30+
- sudo apt-get install -y postgresql-common
31+
- sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -v $PGVERSION -i
3432
- pg_lsclusters
3533
- dpkg -l postgresql\* | cat
3634
- printenv | sort

0 commit comments

Comments
 (0)