forked from pgbigm/pg_bigm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (49 loc) · 1.46 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
language: c
compiler: gcc
env:
matrix:
- PGBRANCH=master
- PGBRANCH=REL_15_STABLE
- PGBRANCH=REL_14_STABLE
- PGBRANCH=REL_13_STABLE
- PGBRANCH=REL_12_STABLE
- PGBRANCH=REL_11_STABLE
- PGBRANCH=REL_10_STABLE
- PGBRANCH=REL9_6_STABLE
- PGBRANCH=REL9_5_STABLE
- PGBRANCH=REL9_4_STABLE
- PGBRANCH=REL9_3_STABLE
- PGBRANCH=REL9_2_STABLE
- PGBRANCH=REL9_1_STABLE
before_install:
- sudo service postgresql stop
- CURDIR=$(pwd)
- PGHOME=${CURDIR}/${PGBRANCH}
- PGDATA=${PGHOME}/data
- PGSRC=${CURDIR}/postgres
- TRGMSRC=${PGSRC}/contrib/pg_trgm
- git clone https://github.com/postgres/postgres.git
- cd ${PGSRC}
- git checkout ${PGBRANCH}
- ./configure --prefix=${PGHOME} --enable-debug --enable-cassert
- make -j 2
- make install
- cd ${TRGMSRC}
- make install
- export PATH=${PATH}:${PGHOME}/bin
- initdb -D ${PGDATA} --locale=C --encoding=UTF8
- pg_ctl -D ${PGDATA} -w start
before_script:
- cd ${CURDIR}
- make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config
- make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config install
script:
- make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck
- make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck-trgm
after_script:
- if [ -f regression.diffs ]; then cat regression.diffs; fi
- pg_ctl -D ${PGDATA} stop
notifications:
email:
on_success: change
on_failure: always