summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2019-09-08 16:31:08 +0100
committerStephen Finucane <stephen@that.guru>2019-09-08 18:27:28 +0100
commit13f3bdcf60c953f9caad67dcbb0473b8575b138c (patch)
treea57a1d0f5a988da357861a1694f3d0d67907b3cb /.travis.yml
parentf4275eff1f4eb563ce6cf7c0299d4f88950c82af (diff)
downloadpatchwork-13f3bdcf60c953f9caad67dcbb0473b8575b138c.tar
patchwork-13f3bdcf60c953f9caad67dcbb0473b8575b138c.tar.gz
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 <stephen@that.guru>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 1 insertions, 11 deletions
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