Skip to content

Commit

Permalink
Fix PostgreSQL upgrade issues in Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
akopytov committed Oct 12, 2016
1 parent fd04338 commit 81c3ea4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ before_install:
brew uninstall libtool
brew update --quiet
brew install libtool mysql
# OS X requires servers to be started explicitly
brew services start mysql
# Avoid PostgreSQL upgrade woes, just recreate the database
rm -rf /usr/local/var/postgres
brew postinstall postgresql
pg_ctl -wD /usr/local/var/postgres start
createuser -s postgres;
createuser -s postgres
;;
esac
Expand All @@ -49,8 +55,8 @@ install:
esac
before_script:
- mysql -u root -e 'CREATE DATABASE sbtest;'
- psql -U postgres -c 'CREATE DATABASE sbtest;'
- mysql -u root -e 'CREATE DATABASE sbtest'
- psql -U postgres -c 'CREATE DATABASE sbtest'

script:
- ./autogen.sh && ./configure --enable-coverage --with-mysql --with-pgsql
Expand Down

0 comments on commit 81c3ea4

Please sign in to comment.