File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,19 @@ if [ -z "${PGVERSION}" ]; then
8
8
fi
9
9
10
10
if [[ " ${TRAVIS_OS_NAME} " == " linux" && " ${BUILD} " == * wheels* ]]; then
11
- # Allow docker guests to connect to the database
12
11
sudo service postgresql stop ${PGVERSION}
13
- echo " listen_addresses = '*'" | \
12
+
13
+ echo " port = 5432" | \
14
14
sudo tee --append /etc/postgresql/${PGVERSION} /main/postgresql.conf
15
- echo " host all all 172.17.0.0/16 trust" | \
16
- sudo tee --append /etc/postgresql/${PGVERSION} /main/pg_hba.conf
15
+
16
+ if [[ " ${BUILD} " == * wheels* ]]; then
17
+ # Allow docker guests to connect to the database
18
+ echo " listen_addresses = '*'" | \
19
+ sudo tee --append /etc/postgresql/${PGVERSION} /main/postgresql.conf
20
+ echo " host all all 172.17.0.0/16 trust" | \
21
+ sudo tee --append /etc/postgresql/${PGVERSION} /main/pg_hba.conf
22
+ fi
23
+
17
24
sudo service postgresql start ${PGVERSION}
18
25
fi
19
26
You can’t perform that action at this time.
0 commit comments