Created
November 6, 2013 14:13
-
-
Save drogus/7336677 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# found in excellent post at: http://reefpoints.dockyard.com/ruby/2013/03/29/running-postgresql-9-2-on-travis-ci.html | |
before_install: | |
- sudo /etc/init.d/postgresql stop | |
- sudo cp /etc/postgresql/9.1/main/pg_hba.conf ./ | |
- sudo apt-get remove postgresql postgresql-9.1 -qq --purge | |
- source /etc/lsb-release | |
- echo "deb http://apt.postgresql.org/pub/repos/apt/ $DISTRIB_CODENAME-pgdg main" > pgdg.list | |
- sudo mv pgdg.list /etc/apt/sources.list.d/ | |
- wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - | |
- sudo apt-get update | |
- sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install postgresql-9.3 postgresql-contrib-9.3 -qq | |
- sudo /etc/init.d/postgresql stop | |
- sudo cp ./pg_hba.conf /etc/postgresql/9.3/main | |
- sudo /etc/init.d/postgresql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment