OSDN Git Service

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