Skip to content

Commit

Permalink
Merge pull request #6 from adjust/travis-pg10
Browse files Browse the repository at this point in the history
Travis pg10
  • Loading branch information
einhverfr authored Nov 6, 2017
2 parents 113031c + 062a9c2 commit 954283d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion sql/regress_sha_upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 954283d

Please sign in to comment.