forked from bucardo/check_postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 1.09 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
44
45
# run the check_postgres testsuite on travis-ci.com
---
# versions to run on
env:
- 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: trusty
sudo: required
language: perl
perl:
- '5.8' # 5.8.8 is shipped with RHEL 5, also oldest version supported by Travis
- '5.24'
before_install:
- sudo apt-get -qq update
install:
# install PostgreSQL $PGVERSION if not there yet
- |
if [ ! -x /usr/lib/postgresql/$PGVERSION/bin/postgres ]; then
sudo apt-get install postgresql-common
sudo /etc/init.d/postgresql stop # travis wants only one version running
sudo apt-get install postgresql-contrib-$PGVERSION
fi
- sudo /etc/init.d/postgresql stop
- 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