Skip to content

Commit b794061

Browse files
committed
ci: Make sure Postgres listens on the standard port
1 parent 9ad6625 commit b794061

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.ci/travis-before-install.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ if [ -z "${PGVERSION}" ]; then
88
fi
99

1010
if [[ "${TRAVIS_OS_NAME}" == "linux" && "${BUILD}" == *wheels* ]]; then
11-
# Allow docker guests to connect to the database
1211
sudo service postgresql stop ${PGVERSION}
13-
echo "listen_addresses = '*'" | \
12+
13+
echo "port = 5432" | \
1414
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+
1724
sudo service postgresql start ${PGVERSION}
1825
fi
1926

0 commit comments

Comments
 (0)