Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (28 sloc) 700 Bytes
#!/bin/bash
mkdir -p $HOME/logs/ruby/trunk
exec &>> $HOME/logs/ruby/trunk/run.log
echo
echo
echo
echo
echo --------------$(date)
RUBY_BENCHMARKS=$1
RUBY_MEMORY_BENCHMARKS=$2
OPTCARROT_BENCHMARK=$3
LIQUID_BENCHMARK=$4
RUBY_COMMIT_HASH=$5
API_NAME=$6
API_PASSWORD=$7
PATTERNS=$8
set -x
docker pull rubybench/ruby_trunk
docker run --rm \
-e "RUBY_BENCHMARKS=$RUBY_BENCHMARKS" \
-e "RUBY_MEMORY_BENCHMARKS=$RUBY_MEMORY_BENCHMARKS" \
-e "OPTCARROT_BENCHMARK=$OPTCARROT_BENCHMARK" \
-e "LIQUID_BENCHMARK=$LIQUID_BENCHMARK" \
-e "RUBY_COMMIT_HASH=$RUBY_COMMIT_HASH" \
-e "API_NAME=$API_NAME" \
-e "API_PASSWORD=$API_PASSWORD" \
-e "INCLUDE_PATTERNS=$PATTERNS" \
rubybench/ruby_trunk