OSDN Git Service

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