diff --git a/.travis.yml b/.travis.yml index b94dda3..6035266 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,18 @@ matrix: install: - sudo apt-get install postgresql-server-dev-9.6 - sudo make install -# - addons: postgresql: 10 + - # addons: postgresql: 10 + install: + - wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add - + - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' + - sudo apt-get update + - sudo apt-get install postgresql postgresql-contrib postgresql-client + - sudo apt-get install postgresql-server-dev-10 + - sudo sh -c 'echo "port=5432" >> /etc/postgresql/10/main/postgresql.conf' + - sudo pg_ctlcluster 10 main restart + - sudo -u postgres psql -c "create user travis with superuser"; + - sudo make install + env: - COVERAGE=1 RELEASE_TESTING=1 DB_TESTING=1 script: diff --git a/sql/regress_sha_upgrade.sql b/sql/regress_sha_upgrade.sql index 21f696d..63e7bf9 100644 --- a/sql/regress_sha_upgrade.sql +++ b/sql/regress_sha_upgrade.sql @@ -4,12 +4,15 @@ -- \set ECHO none +\set VERBOSITY terse +SET client_min_messages = error; drop extension if exists hashtypes cascade;; drop schema public cascade; create schema public; -SET client_min_messages = error; CREATE EXTENSION hashtypes version '0.1.2'; ALTER EXTENSION hashtypes update; +--set client_min_messages = 'notice'; +\set VERBOSITY default \set ECHO all CREATE TABLE sha (one sha1, two sha224);