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

25 lines
426 B
Bash
Raw Normal View History

#!/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