6 if ! [[ -n "$WORKSPACE" ]]; then
7 echo "WORKSPACE environment variable not set"
12 txt="********** $1 **********"
13 printf "\n%*s%s\n\n" $((($COLUMNS-${#txt})/2)) "" "$txt"
21 echo -n "$(($SECONDS - $t0))s"
24 source /etc/profile.d/rvm.sh
27 title "Starting diagnostics"
32 cp -f /home/jenkins/diagnostics/arvados-workbench/application.yml $WORKSPACE/apps/workbench/config/
34 cd $WORKSPACE/apps/workbench
36 HOME="$GEMHOME" bundle install --no-deployment
38 if [[ ! -d tmp ]]; then
42 RAILS_ENV=diagnostics bundle exec rake TEST=test/diagnostics/pipeline_test.rb
46 if [[ "$ECODE" != "0" ]]; then
47 title "!!!!!! DIAGNOSTICS FAILED (`timer`) !!!!!!"
48 EXITCODE=$(($EXITCODE + $ECODE))
52 title "Diagnostics complete (`timer`)"