mirror of
https://github.com/captn3m0/dotfiles.git
synced 2024-09-28 13:22:54 +00:00
26 lines
575 B
Bash
26 lines
575 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
function build_quietly()
|
||
|
{
|
||
|
(bundle install > /dev/null &&
|
||
|
cd ruby/command-t &&
|
||
|
ruby extconf.rb > /dev/null &&
|
||
|
make clean > /dev/null &&
|
||
|
make > /dev/null)
|
||
|
}
|
||
|
|
||
|
OLD_PATH=$PATH
|
||
|
for RUBY_VERSION in $(ls ~/.multiruby/install); do
|
||
|
echo "$RUBY_VERSION: building"
|
||
|
export PATH=~/.multiruby/install/$RUBY_VERSION/bin:$OLD_PATH
|
||
|
build_quietly
|
||
|
echo "$RUBY_VERSION: running spec suite"
|
||
|
bundle exec rspec spec
|
||
|
echo "$RUBY_VERSION: finished"
|
||
|
done
|
||
|
|
||
|
# put things back the way we found them
|
||
|
export PATH=$OLD_PATH
|
||
|
echo "Restoring: $(ruby -v)"
|
||
|
build_quietly
|