forked from bucardo/check_postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.01 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
36
37
38
39
40
41
42
43
# run the check_postgres testsuite on travis-ci.com
---
# versions to run on
env:
- PGVERSION=13
- PGVERSION=12
- PGVERSION=11
- PGVERSION=10
- PGVERSION=9.6
- PGVERSION=9.5
- PGVERSION=9.4
- PGVERSION=9.3
- PGVERSION=9.2
- PGVERSION=9.1
- PGVERSION=9.0
- PGVERSION=8.4
dist: focal
sudo: required
language: perl
perl:
- '5.30'
- '5.14' # 5.14 is shipped with Ubuntu precise (12.04), also oldest version supported by Travis on focal
before_install:
- sudo apt-get -qq update
install:
# upgrade postgresql-common for new apt.postgresql.org.sh
- sudo apt-get install -y postgresql-common
- sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -p -v $PGVERSION -i
- pg_lsclusters
- dpkg -l postgresql\* | cat
- printenv | sort
script:
- rm -rf test_database_check_postgres*
- perl Makefile.PL
- cpanm --quiet --installdeps --notest .
- PGBINDIR=/usr/lib/postgresql/$PGVERSION/bin make test TEST_VERBOSE=1
after_script:
- tail -n 200 test_database_check_postgres*/pg.log