Sha256: bc419b07dd9b0e3512bbce30f3146bedab5436a1b659b4f7b6bc389ca7cd6f07
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
#!/bin/sh # # Add the following line to crontab to execute benchmarks as a cron job on workdays at 1AM # # 0 1 * * 1-5 /Users/rhomobile/workspace/rhoconnect/bench/run_bench.sh # # ALL log messages go to '/tmp/bench.log' file echo '' > /tmp/bench.log if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then # First try to load from a user install source "$HOME/.rvm/scripts/rvm" elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then # Then try to load from a root install source "/usr/local/rvm/scripts/rvm" else printf "ERROR: An RVM installation was not found.\n" >> /tmp/bench.log exit fi cd '../' RHOCONNECT_HOME=`pwd` echo "Pull rhoconnect code from remote repository ..." | tee -a /tmp/bench.log git reset --hard HEAD | tee -a /tmp/bench.log 2>&1 git pull origin master | tee -a /tmp/bench.log 2>&1 echo '' | tee -a /tmp/bench.log # Run benchmarks for ruby 1.8.7, ree, and 1.9.2 # TODO: 'jruby' for ruby in '1.9.2' '1.8.7' 'ree' do rvm use $ruby > /dev/null ruby_version=$(rvm current) echo "Running benchmarks under $ruby_version ..." | tee -a /tmp/bench.log echo "" | tee -a /tmp/bench.log ruby ./bench/bench_runner.rb $RHOCONNECT_HOME 2>&1 | tee -a /tmp/bench.log done
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rhoconnect-3.1.0.beta1 | bench/run_bench.sh |
rhoconnect-3.0.6 | bench/run_bench.sh |