Skip to content

Commit dca0f56

Browse files
committed
Unbreak macOS on Travis (again)
1 parent 58656bc commit dca0f56

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.ci/travis-before-install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
3636
pyenv rehash
3737

3838
# Install PostgreSQL
39-
if brew ls --versions postgresql@${PGVERSION} > /dev/null; then
40-
brew upgrade postgresql@${PGVERSION}
41-
else
42-
brew install postgresql@${PGVERSION}
39+
if brew ls --versions postgresql > /dev/null; then
40+
brew remove --force --ignore-dependencies postgresql
4341
fi
4442

45-
brew cleanup postgresql@${PGVERSION}
43+
brew install postgresql@${PGVERSION}
4644
brew services start postgresql@${PGVERSION}
4745
fi

0 commit comments

Comments
 (0)