diff options
author | Gerard Roche <gerardroche@users.noreply.github.com> | 2020-05-20 20:03:10 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-22 10:02:57 +0200 |
commit | cf3d3cd86fa63a1b8e0166b683d86a1ee305576a (patch) | |
tree | 33f522546f8ffb66ccd59f2da8a3ccada4fc3db9 /travis/setup-pgsql.sh | |
parent | d1dde094f2442b11808bd77bc8b064be3792458a (diff) | |
download | php-git-cf3d3cd86fa63a1b8e0166b683d86a1ee305576a.tar.gz |
Fix PostgreSQL and MySQL setup on Travis CI
Note that the PostgreSQL tests still don't work on some architectures.
Closes GH-5607.
Diffstat (limited to 'travis/setup-pgsql.sh')
-rwxr-xr-x | travis/setup-pgsql.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/travis/setup-pgsql.sh b/travis/setup-pgsql.sh index d0929de9f0..3fea8f70b4 100755 --- a/travis/setup-pgsql.sh +++ b/travis/setup-pgsql.sh @@ -1,6 +1,8 @@ -#!/bin/bash -echo ' -<?php $conn_str .= " user=postgres"; ?>' >> "./ext/pgsql/tests/config.inc" -if [ -z "$ARM64" -o -z "$S390X"]; then - psql -c 'create database test;' -U postgres +#!/bin/sh +set -ev + +# PostgreSQL tests currently don't work on some architectures. +if test -z "${ARM64}${S390X}"; then + psql -c "ALTER USER postgres PASSWORD 'postgres';" -U postgres + psql -c "CREATE DATABASE test;" -U postgres fi |