Sha256: 58e3f7976e8374e047997fcc6883f3358e4f9b46f0663c2ac22af0c7abf55a5f

Contents?: true

Size: 1.08 KB

Versions: 6

Compression:

Stored size: 1.08 KB

Contents

#!/bin/bash

set -e -x

function is_jruby() {
  if ruby -e 'exit RUBY_PLATFORM == "java"'; then
    return 0
  else
    return 1
  fi
}

# Needed by Bundler 1.3: https://github.com/carlhuda/bundler/issues/2382
export RUBYOPT='-rrbconfig'

# idea taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html
export JRUBY_OPTS='-X-C' # disable JIT since these processes are so short lived

# force jRuby to use client mode JVM or a compilation mode thats as close as possible,
# idea taken from https://github.com/jruby/jruby/wiki/Improving-startup-time
export JAVA_OPTS='-client -XX:+TieredCompilation -XX:TieredStopAtLevel=1'

echo "Bundling Standalone so we can run the specs w/o bundler loaded"
bundle install --standalone --binstubs

echo "Running all..."
bin/rspec spec -b --format progress

echo
echo "--------------------------------------------------------------------"
echo

if is_jruby; then
  echo "Skipping one-by-one spec runs due to expensive JVM load time"
else
  for file in `find spec -iname '*_spec.rb'`; do
    NO_COVERALLS=1 bin/rspec $file -b --format progress
  done
fi

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-autotest-1.0.2 script/test_all
rspec-autotest-1.0.1 script/test_all
rspec-autotest-1.0.0 script/test_all
rspec-autotest-1.0.0.rc2 script/test_all
rspec-autotest-1.0.0.rc1 script/test_all
rspec-autotest-1.0.0.beta1 script/test_all