OSDN Git Service

Make regression test for textporter work fine on PostgreSQL 12 or later.
[ludiafuncs/ludia_funcs.git] / .travis.yml
1 language: c
2
3 compiler: gcc
4
5 env:
6    matrix:
7       - PGBRANCH=master
8       - PGBRANCH=REL_12_STABLE
9       - PGBRANCH=REL_11_STABLE
10       - PGBRANCH=REL_10_STABLE
11       - PGBRANCH=REL9_6_STABLE
12       - PGBRANCH=REL9_5_STABLE
13       - PGBRANCH=REL9_4_STABLE
14       - PGBRANCH=REL9_3_STABLE
15       - PGBRANCH=REL9_2_STABLE
16       - PGBRANCH=REL9_1_STABLE
17
18 before_install:
19    - sudo service postgresql stop
20    - CURDIR=$(pwd)
21    - PGHOME=${CURDIR}/${PGBRANCH}
22    - PGDATA=${PGHOME}/data
23    - git clone https://github.com/postgres/postgres.git
24    - cd postgres
25    - git checkout ${PGBRANCH}
26    - ./configure --prefix=${PGHOME} --enable-debug --enable-cassert
27    - make -j 2
28    - make install
29    - export PATH=${PATH}:${PGHOME}/bin
30    - initdb -D ${PGDATA} --locale=C --encoding=UTF8
31    - pg_ctl -D ${PGDATA} -w start
32
33 before_script:
34    - cd ${CURDIR}
35    - mkdir opt
36    - PG_CONFIG=${PGHOME}/bin/pg_config
37    - SENNA_INS=${CURDIR}/opt/senna-1.1.2-fast
38    - SENNA_CFG=${SENNA_INS}/bin/senna-cfg
39    - git clone https://scm.osdn.net/gitroot/pgbigm/pg_bigm.git
40    - cd pg_bigm
41    - make USE_PGXS=1 PG_CONFIG=${PG_CONFIG} install
42    - cd ${CURDIR}
43    - git clone https://scm.osdn.net/gitroot/ludiafuncs/senna-1.1.2-fast.git
44    - cd senna-1.1.2-fast
45    - ./configure --prefix=${SENNA_INS} --without-mecab
46    - make install
47    - cd ${CURDIR}
48    - make USE_PGXS=1 PG_CONFIG=${PG_CONFIG} SENNA_CFG=${SENNA_CFG} PGS2_DEBUG=1 install
49
50 script:
51    - make USE_PGXS=1 PG_CONFIG=${PG_CONFIG} SENNA_CFG=${SENNA_CFG} PGS2_DEBUG=1 installcheck-bigm
52
53 after_script:
54    - if [ -f regression.diffs ]; then cat regression.diffs; fi
55    - pg_ctl -D ${PGDATA} stop
56
57 notifications:
58    email:
59       on_success: change
60       on_failure: always