From 13f3bdcf60c953f9caad67dcbb0473b8575b138c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Sun, 8 Sep 2019 16:31:08 +0100 Subject: travis: Update postgreSQL 10 steps This is failing since the update to Xenial [1] with the following warning: $ sudo -u postgres psql -c "grant ALL on DATABASE postgres to travis WITH GRANT OPTION;" could not change directory to "/home/travis/build/getpatchwork/patchwork": Permission denied psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"? Use the solution from [2] to resolve it. [1] https://travis-ci.org/getpatchwork/patchwork/jobs/582342649 [2] https://github.com/travis-ci/travis-ci/issues/8537#issuecomment-498299645 Signed-off-by: Stephen Finucane --- .travis.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d3f6d70..cc32684 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,20 +33,10 @@ matrix: - PW_TEST_DB_USER=root - addons: postgresql: 10 - apt: - packages: - - postgresql-10 - - postgresql-client-10 env: - - PGPORT=5433 - - PW_TEST_DB_HOST="" - - PW_TEST_DB_PORT=5433 - PW_TEST_DB_TYPE=postgres - - PW_TEST_DB_USER=travis + - PW_TEST_DB_USER=postgres python: 3.7 - sudo: true - before_install: - - sudo -u postgres psql -c "grant ALL on DATABASE postgres to travis WITH GRANT OPTION;" before_script: - if [[ $PW_TEST_DB_TYPE == mysql ]]; then mysql -e "create database patchwork character set utf8;"; fi -- cgit v1.2.3