#!/usr/bin/env ruby require 'pathname' APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) Dir.chdir APP_ROOT do puts '== Installing dependencies ==' system 'gem install bundler --conservative' system 'bundle check || bundle install --jobs=3 --retry=3' puts "\n== Running checks ==" system 'bundle exec rake spec' end