This commit is contained in:
Robert Lechte 2018-01-12 11:40:43 +11:00
parent 0abebb7638
commit 76e8a3b551
2 changed files with 16 additions and 1 deletions

View File

@ -11,7 +11,9 @@ services:
- postgresql
addons:
postgresql: "10"
postgresql: "9.6"
before_script:
- bash install-postgres-10.sh
# command to install dependencies
install: make pip

13
install-postgres-10.sh Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -ex
echo "Installing Postgres 10"
sudo service postgresql stop
sudo apt-get remove -q 'postgresql-*'
sudo apt-get update -q
sudo apt-get install -q postgresql-10 postgresql-client-10
sudo cp /etc/postgresql/{9.6,10}/main/pg_hba.conf
echo "Restarting Postgres 10"
sudo service postgresql restart