2014-05-08 17:38:29 +08:00
|
|
|
language: c
|
|
|
|
|
2014-05-08 17:52:02 +08:00
|
|
|
addons:
|
|
|
|
postgresql: 9.3
|
|
|
|
|
2014-05-06 16:21:27 +08:00
|
|
|
before_install:
|
2014-05-08 17:54:39 +08:00
|
|
|
#- sudo apt-get install -q postgresql-9.3-postgis-2.1
|
|
|
|
- sudo apt-get install -q postgresql-server-dev-9.3
|
2014-06-05 21:06:14 +08:00
|
|
|
- sudo apt-get install -q postgresql-plpython-9.3
|
2014-05-08 18:21:53 +08:00
|
|
|
# Install schema_triggers
|
2014-05-08 16:25:40 +08:00
|
|
|
- hg clone https://bitbucket.org/malloclabs/pg_schema_triggers &&
|
2014-05-08 16:28:01 +08:00
|
|
|
cd pg_schema_triggers && make && sudo make install && cd -
|
2014-05-08 18:21:53 +08:00
|
|
|
# Preload schema_triggers module
|
|
|
|
# NOTE: might change if we make it part of the installcheck instead
|
2014-05-08 18:44:24 +08:00
|
|
|
- echo "shared_preload_libraries = 'schema_triggers.so'" |
|
2014-05-08 18:32:06 +08:00
|
|
|
sudo tee -a /etc/postgresql/9.3/main/postgresql.conf &&
|
2014-05-08 18:21:53 +08:00
|
|
|
sudo service postgresql restart
|
2014-05-06 16:21:27 +08:00
|
|
|
|
|
|
|
script:
|
2014-05-08 18:02:38 +08:00
|
|
|
- make
|
|
|
|
- sudo make install
|
2014-06-18 17:54:28 +08:00
|
|
|
- PGOPTIONS='-c client_min_messages=NOTICE' PGUSER=postgres make installcheck ||
|
2014-05-08 18:54:22 +08:00
|
|
|
{ cat regression.diffs; false; }
|