8 if [[ "$INSTANCE" == '' ]]; then
9 echo "Syntax: $0 <instance> [revision]"
13 if [[ "$REVISION" == '' ]]; then
14 # See if there's a configuration file with the revision?
15 CONFIG_PATH=/home/jenkins/configuration/$INSTANCE.arvadosapi.com-versions.conf
16 if [[ -f $CONFIG_PATH ]]; then
17 echo "Loading git revision from $CONFIG_PATH"
19 REVISION=$ARVADOS_GIT_REVISION
23 if [[ "$REVISION" != '' ]]; then
24 echo "Git revision is $REVISION"
26 echo "No valid git revision found, proceeding with what is in place."
30 if ! [[ -n "$WORKSPACE" ]]; then
31 echo "WORKSPACE environment variable not set"
36 txt="********** $1 **********"
37 printf "\n%*s%s\n\n" $((($COLUMNS-${#txt})/2)) "" "$txt"
45 echo -n "$(($SECONDS - $t0))s"
48 source /etc/profile.d/rvm.sh
51 title "Starting performance test"
56 if [[ "$REVISION" != '' ]]; then
57 git checkout $REVISION
60 cp -f /home/jenkins/diagnostics/arvados-workbench/$INSTANCE-application.yml $WORKSPACE/apps/workbench/config/application.yml
62 cd $WORKSPACE/apps/workbench
64 HOME="$GEMHOME" bundle install --no-deployment
66 if [[ ! -d tmp ]]; then
72 RAILS_ENV=performance bundle exec rake test:benchmark
76 if [[ "$REVISION" != '' ]]; then
80 if [[ "$ECODE" != "0" ]]; then
81 title "!!!!!! PERFORMANCE TESTS FAILED (`timer`) !!!!!!"
82 EXITCODE=$(($EXITCODE + $ECODE))
86 title "Performance tests complete (`timer`)"