OSDN Git Service

Make Travis CI run installcheck-trgm regression test.
authorMasaoFujii <masao.fujii@gmail.com>
Wed, 14 Oct 2020 17:01:00 +0000 (02:01 +0900)
committerMasaoFujii <masao.fujii@gmail.com>
Thu, 15 Oct 2020 00:24:40 +0000 (09:24 +0900)
Back-patch to v1.1 where installcheck-trgm test was added.

.travis.yml

index 9201589..8663740 100644 (file)
@@ -21,12 +21,16 @@ before_install:
    - 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 postgres
+   - 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
@@ -38,6 +42,7 @@ before_script:
 
 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