Commit e729eeabccb72b97c50e2654029897f5b2c8cd4a

Authored by Rodrigo Souto
1 parent 97b77def

[postgres-tests] Making quick-start prepare environment to postgresql by default

script/install-dependencies/debian-squeeze.sh
@@ -4,7 +4,7 @@ run sudo apt-get -y install $runtime_dependencies @@ -4,7 +4,7 @@ run sudo apt-get -y install $runtime_dependencies
4 sudo apt-get -y install iceweasel || sudo apt-get -y install firefox 4 sudo apt-get -y install iceweasel || sudo apt-get -y install firefox
5 5
6 # needed for development 6 # needed for development
7 -run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb libxml2-dev libxslt-dev 7 +run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb libxml2-dev libxslt-dev postgresql
8 gem which bundler >/dev/null 2>&1 || gem_install bundler 8 gem which bundler >/dev/null 2>&1 || gem_install bundler
9 setup_rubygems_path 9 setup_rubygems_path
10 run bundle install 10 run bundle install
script/quick-start
@@ -67,7 +67,10 @@ else @@ -67,7 +67,10 @@ else
67 fi 67 fi
68 68
69 # create the database with sample data 69 # create the database with sample data
70 -run cp config/database.yml.sqlite3 config/database.yml 70 +run cp config/database.yml.pgsql config/database.yml
  71 +sudo -u postgres createuser $USER --no-superuser --createdb --no-createrole
  72 +sed -ri "s/username: noosfero/username: $USER/"
  73 +sudo -u postgres createdb noosfero_development -O $USER
71 run rake db:schema:load 74 run rake db:schema:load
72 run rake db:data:minimal 75 run rake db:data:minimal
73 run rake db:test:prepare 76 run rake db:test:prepare