### WARNING: This will install/uninstall gems, so please run it in a separate gemset. echo "### SETUP" ruby -v rm -rf /tmp/tilt_tests git clone git://github.com/rtomayko/tilt.git /tmp/tilt_tests git show-ref HEAD cd /tmp/tilt_tests # Install development gems cat tilt.gemspec | grep development | ruby -ne 'puts $_[/y .([\w-]+)/, 1]' | xargs gem install # Install JSON if not available ruby -rubygems -e'require "json"' 2>/dev/null || gem install json # Uninstall Markaby if it fails (known bug on 1.9) ruby -rubygems -e'require "markaby"' 2>/dev/null || gem uninstall markaby echo "### TESTS" rake test rm -rf /tmp/tilt_tests