From 6eec5822f0ee34032a856e4dc0d75794bd193c8d Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 9 Feb 2015 18:34:28 +0100 Subject: [PATCH] Create CREATE EXTENSION plpythonu for tests --- .travis.yml | 1 + test/support/prepare_db.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index ef58e4f9..77d9f91f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ addons: before_install: - sudo apt-get install -y pkg-config libcairo2-dev libjpeg8-dev libgif-dev + - sudo apt-get install postgresql-plpython-9.3 - createdb template_postgis - psql -c "CREATE EXTENSION postgis" template_postgis diff --git a/test/support/prepare_db.sh b/test/support/prepare_db.sh index 991b52f9..8185da4d 100755 --- a/test/support/prepare_db.sh +++ b/test/support/prepare_db.sh @@ -78,6 +78,7 @@ if test x"$PREPARE_PGSQL" = xyes; then sed "s/:TESTPASS/${TESTPASS}/" | psql -v ON_ERROR_STOP=1 ${TEST_DB} || exit 1 + psql -c "CREATE EXTENSION plpythonu;" ${TEST_DB} curl -L -s https://github.com/CartoDB/cartodb-postgresql/raw/cdb/scripts-available/CDB_QueryStatements.sql -o sql/CDB_QueryStatements.sql curl -L -s https://github.com/CartoDB/cartodb-postgresql/raw/cdb/scripts-available/CDB_QueryTables.sql -o sql/CDB_QueryTables.sql cat sql/CDB_QueryStatements.sql sql/CDB_QueryTables.sql |