-
Notifications
You must be signed in to change notification settings - Fork 175
/
.travis.yml
41 lines (36 loc) · 1.08 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
# 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
dist: focal
sudo: required
language: perl
perl:
- '5.30.0'
- '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:
- sudo apt-get install curl ca-certificates gnupg
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
- sudo apt-get update
- sudo apt-get install postgresql-$PGVERSION
- 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