forked from pgbouncer/pgbouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 1.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dist: bionic
language: c
addons:
apt:
sources:
- sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main'
key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc'
update: true
packages:
- electric-fence
- libc-ares-dev
- libevent-dev
- libudns-dev
- pandoc
- postgresql-9.5
- postgresql-11
- python
- valgrind
compiler:
- clang
- gcc
env:
global:
- PGVERSION=11
matrix:
- configure_args=''
- configure_args='' PGVERSION=9.5
- configure_args='--with-cares'
- configure_args='--with-udns'
- configure_args='--disable-evdns'
- configure_args='--with-pam'
- configure_args='--without-openssl'
- use_valgrind=yes
- use_valgrind=yes PGVERSION=9.5
script: |
set -e
PATH=/usr/lib/postgresql/${PGVERSION}/bin:$PATH
./autogen.sh
./configure --prefix=$HOME/install --enable-cassert --enable-werror --without-cares $configure_args
PACKAGE_VERSION=$(sed -n 's/PACKAGE_VERSION = //p' config.mak)
make
(
if [ x"$use_efence" = x"yes" ]; then
export LD_PRELOAD=/usr/lib/libefence.so
export EF_ALLOW_MALLOC_0=1
fi
if [ x"$use_valgrind" = x"yes" ]; then
export BOUNCER_EXE_PREFIX="valgrind --quiet --leak-check=full --show-reachable=no --track-origins=yes --error-markers=VALGRIND-ERROR-BEGIN,VALGRIND-ERROR-END --log-file=$HOME/valgrind.%p.log"
fi
make check
if [ x"$use_valgrind" = x"yes" ]; then
if grep -q VALGRIND-ERROR $HOME/valgrind.*.log; then
cat $HOME/valgrind.*.log
exit 1
fi
fi
)
make install
make dist
tar -x -f pgbouncer-${PACKAGE_VERSION}.tar.gz
cd pgbouncer-${PACKAGE_VERSION}/
./configure --prefix=$HOME/install2 --enable-werror --without-cares $configure_args
make
make install