Travis: prepare an "err" schema.

The test/errors.load set the search_path to include the 'err' schema,
which is to be created by the test itself. PostgreSQL 9.1 raises an
error where 9.4 and following just accept the setting, and Travis runs a
9.1 PostgreSQL.

Let's just create the schema before-hand so that we can still run tests
against SET search_path from the load file.
This commit is contained in:
Dimitri Fontaine 2015-11-23 15:26:18 +01:00
parent 4e23de1b2b
commit f109c3fdb4

View File

@ -14,6 +14,7 @@ before_script:
- sudo -u postgres createdb -E UTF8 -O pgloader -hlocalhost pgloader
- sudo -u postgres psql -h localhost -d pgloader -c "create extension ip4r;"
- PGUSER=pgloader psql -h localhost -d pgloader -c "create schema expected;"
- PGUSER=pgloader psql -h localhost -d pgloader -c "create schema err;"
- make --version
- make
script: