OSDN Git Service

Add the news about the release of RPM files.
[pgbigm/pg_bigm.git] / .travis.yml
1 language: c
2
3 compiler: gcc
4
5 env:
6    matrix:
7       - PGBRANCH=master
8       - PGBRANCH=REL_13_STABLE
9       - PGBRANCH=REL_12_STABLE
10       - PGBRANCH=REL_11_STABLE
11       - PGBRANCH=REL_10_STABLE
12       - PGBRANCH=REL9_6_STABLE
13       - PGBRANCH=REL9_5_STABLE
14       - PGBRANCH=REL9_4_STABLE
15       - PGBRANCH=REL9_3_STABLE
16       - PGBRANCH=REL9_2_STABLE
17       - PGBRANCH=REL9_1_STABLE
18
19 before_install:
20    - sudo service postgresql stop
21    - CURDIR=$(pwd)
22    - PGHOME=${CURDIR}/${PGBRANCH}
23    - PGDATA=${PGHOME}/data
24    - PGSRC=${CURDIR}/postgres
25    - TRGMSRC=${PGSRC}/contrib/pg_trgm
26    - git clone https://github.com/postgres/postgres.git
27    - cd ${PGSRC}
28    - git checkout ${PGBRANCH}
29    - ./configure --prefix=${PGHOME} --enable-debug --enable-cassert
30    - make -j 2
31    - make install
32    - cd ${TRGMSRC}
33    - make install
34    - export PATH=${PATH}:${PGHOME}/bin
35    - initdb -D ${PGDATA} --locale=C --encoding=UTF8
36    - pg_ctl -D ${PGDATA} -w start
37
38 before_script:
39    - cd ${CURDIR}
40    - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config
41    - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config install
42
43 script:
44    - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck
45    - make USE_PGXS=1 PG_CONFIG=${PGHOME}/bin/pg_config installcheck-trgm
46
47 after_script:
48    - if [ -f regression.diffs ]; then cat regression.diffs; fi
49    - pg_ctl -D ${PGDATA} stop
50
51 notifications:
52    email:
53       on_success: change
54       on_failure: always