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-05-08 18:21:53 +08:00
|
|
|
- ls /etc/init /etc/init.d | grep postgres
|
|
|
|
# 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:32:06 +08:00
|
|
|
- echo "local_preload_libraries = 'schema_triggers.so'" |
|
|
|
|
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-05-08 16:41:37 +08:00
|
|
|
- make installcheck || { cat regression.diffs; false; }
|