7 if [[ "$INSTANCE" == '' ]]; then
8 echo "Syntax: $0 <instance>"
13 if ! [[ -n "$WORKSPACE" ]]; then
14 echo "WORKSPACE environment variable not set"
19 txt="********** $1 **********"
20 printf "\n%*s%s\n\n" $((($COLUMNS-${#txt})/2)) "" "$txt"
28 echo -n "$(($SECONDS - $t0))s"
31 source /etc/profile.d/rvm.sh
34 title "Starting diagnostics"
39 cp -f /home/jenkins/diagnostics/arvados-workbench/$INSTANCE-application.yml $WORKSPACE/apps/workbench/config/application.yml
41 cd $WORKSPACE/apps/workbench
43 HOME="$GEMHOME" bundle install --no-deployment
45 if [[ ! -d tmp ]]; then
49 RAILS_ENV=diagnostics bundle exec rake TEST=test/diagnostics/pipeline_test.rb
53 if [[ "$ECODE" != "0" ]]; then
54 title "!!!!!! DIAGNOSTICS FAILED (`timer`) !!!!!!"
55 EXITCODE=$(($EXITCODE + $ECODE))
59 title "Diagnostics complete (`timer`)"