8 printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
11 source /etc/profile.d/rvm.sh
13 # This shouldn't really be necessary... but the jenkins/rvm integration seems a
14 # bit wonky occasionally.
20 title "Starting tapestry tests"
23 # There are a few submodules
24 git submodule init && git submodule update
26 # Use sqlite for testing
27 sed -i'' -e "s:mysql:sqlite3:" Gemfile
29 # Tapestry is not set up yet to use --deployment
30 #bundle install --deployment
33 rm -f config/database.yml
34 rm -f config/environments/test.rb
35 cp $HOME/tapestry/test.rb config/environments/
36 cp $HOME/tapestry/database.yml config/
40 bundle exec rake db:drop
41 bundle exec rake db:create
42 bundle exec rake db:setup
47 if [[ "$ECODE" != "0" ]]; then
48 title "!!!!!! TAPESTRY TESTS FAILED !!!!!!"
49 EXITCODE=$(($EXITCODE + $ECODE))
52 title "Tapestry tests complete"