1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/multi_test_inside_docker.sh
Andrew Vos 81455ef211 Add scripts to rake test on all rubies
Run ./multi_test.sh to test all rubies that are configured in
Dockerfile.
2014-07-20 00:17:57 +01:00

24 lines
426 B
Bash
Executable file

#!/bin/bash -e
export ORIGINAL_PATH=$PATH
function test {
version=$1
export PATH=$ORIGINAL_PATH
export GEM_HOME=/tmp/prytmp/$version
export PATH=/opt/rubies/$version/bin:$GEM_HOME/bin:$PATH
export RUBY_ROOT=/opt/rubies/$version
if [ ! -f $GEM_HOME/bin/bundle ]; then
gem install bundler --no-rdoc --no-ri
fi
bundle install --quiet
rake test
}
for ruby in `ls /opt/rubies`
do
test $ruby || :
done