3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: AGPL-3.0
12 printf "\n%*s\n\n" $(((${#title}+$COLUMNS)/2)) "********** $1 **********"
15 source /etc/profile.d/rvm.sh
17 # This shouldn't really be necessary... but the jenkins/rvm integration seems a
18 # bit wonky occasionally.
24 title "Starting tapestry tests"
27 # There are a few submodules
28 git submodule init && git submodule update
30 # Use sqlite for testing
31 sed -i'' -e "s:mysql:sqlite3:" Gemfile
33 # Tapestry is not set up yet to use --deployment
34 #bundle install --deployment
37 rm -f config/database.yml
38 rm -f config/environments/test.rb
39 cp $HOME/tapestry/test.rb config/environments/
40 cp $HOME/tapestry/database.yml config/
44 bundle exec rake db:drop
45 bundle exec rake db:create
46 bundle exec rake db:setup
51 if [[ "$ECODE" != "0" ]]; then
52 title "!!!!!! TAPESTRY TESTS FAILED !!!!!!"
53 EXITCODE=$(($EXITCODE + $ECODE))
56 title "Tapestry tests complete"