From 46d902df660cc834f77d819482784bd2d7365e49 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 8 May 2014 12:21:53 +0200 Subject: [PATCH] [Travis] Configure PostgreSQL to preload schema_triggers.so --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d3bcd13..c957008 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,9 +6,15 @@ addons: before_install: #- sudo apt-get install -q postgresql-9.3-postgis-2.1 - sudo apt-get install -q postgresql-server-dev-9.3 - - # Install schema_triggers + - ls /etc/init /etc/init.d | grep postgres + # Install schema_triggers - hg clone https://bitbucket.org/malloclabs/pg_schema_triggers && cd pg_schema_triggers && make && sudo make install && cd - + # Preload schema_triggers module + # NOTE: might change if we make it part of the installcheck instead + - echo "local_preload_libraries = 'schema_triggers.so'" >> + /etc/postgresql/9.3/main/postgresql.conf && + sudo service postgresql restart script: - make