Sha256: 4126c3737d6581dbdd342c39e4529863c0e98c092db8bc92c365e486f7c0f479

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

#!/bin/bash
#
# Run specs against all supported ruby and paperclip versions
# using RVM (http://rvm.io/)

# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
  # First try to load from a user install
  source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
  # Then try to load from a root install
  source "/usr/local/rvm/scripts/rvm"
else
  printf "ERROR: An RVM installation was not found.\n"
fi

for ruby in '2.1' '2.2' 'jruby'
do
  rvm use $ruby
  gem install bundler --conservative --no-rdoc --no-ri

  for paperclip_version in 4
  do
    gemfile="gemfiles/Gemfile.paperclip-${paperclip_version}.x"
    bundle install --gemfile=$gemfile
    BUNDLE_GEMFILE=$gemfile bundle exec rake
  done
done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paperclip-storage-ftp-1.2.7 test-all.sh
paperclip-storage-ftp-1.2.6 test-all.sh
paperclip-storage-ftp-1.2.5 test-all.sh