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
70 RAILS_ENV=performance bundle exec rake TEST=test/performance/browsing_test.rb
74 if [[ "$REVISION" != '' ]]; then
78 if [[ "$ECODE" != "0" ]]; then
79 title "!!!!!! PERFORMANCE TESTS FAILED (`timer`) !!!!!!"
80 EXITCODE=$(($EXITCODE + $ECODE))
84 title "Performance tests complete (`timer`)"