travis/before_script.sh in active_road-0.0.2 vs travis/before_script.sh in active_road-0.0.3
- old
+ new
@@ -1,9 +1,9 @@
createdb -U postgres template_postgis
-if [[ "$POSTGIS" == "2.0" ]]; then
- psql -U postgres -d template_postgis -c "CREATE EXTENSION postgis;"
-else
- createlang -U postgres plpgsql template_postgis
- psql -U postgres -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql
- psql -U postgres -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql
-fi
+psql -U postgres -d template_postgis -c "CREATE EXTENSION postgis;"
+psql -U postgres -d template_postgis -c "CREATE EXTENSION postgis_topology;"
+
+ls -al /usr/share/postgresql/9.2/contrib/postgis-2.1
+
+# Problem with postgresql 9.3 no script anymore for postgis
+psql -U postgres -d template_postgis -f "/usr/share/postgresql/9.2/contrib/postgis-2.1/legacy_gist.sql"