Sha256: 74159e7684dcbf6b929c4fa50f2c8e6d415fb2410f03a867f740296221cbf700

Contents?: true

Size: 853 Bytes

Versions: 11

Compression:

Stored size: 853 Bytes

Contents

#! /bin/bash

set -e

source /usr/local/share/chruby/chruby.sh

for RUBY_VERSION in "2.2.10" "2.3.7" "2.4.4" "2.5.1"; do
  chruby $RUBY_VERSION
  for RAILS_VERSION in "~> 3.2.0" "~> 4.0.0" "~> 4.1.0" "~> 4.2.0" "~> 5.0.0" "= 5.1.4" "= 5.1.5" "~> 5.1.6" "~> 5.2.0"; do
    echo "Ruby $RUBY_VERSION; Rails $RAILS_VERSION"
    if ( [ "$RUBY_VERSION" == "2.2.10" ] && ( [ "$RAILS_VERSION" == "= 5.1.4" ] || [ "$RAILS_VERSION" == "= 5.1.5" ] ) ) || \
        ( ( [ "$RUBY_VERSION" == "2.4.4" ] || ( [ "$RUBY_VERSION" == "2.5.1" ] ) && ( [ "$RAILS_VERSION" == "~> 3.2.0" ] || [ "$RAILS_VERSION" == "~> 4.0.0" ] || [ "$RAILS_VERSION" == "~> 4.1.0" ] ) ) ); then
      echo "Skipping"
      continue
    fi
    export RAILS_VERSION
    type bundle > /dev/null || gem install bundler
    bundle update
    bundle exec rspec spec
  done
done

unset RAILS_VERSION

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
counter_culture-2.1.4 test_rails_versions.sh
counter_culture-2.1.3 test_rails_versions.sh
counter_culture-2.1.2 test_rails_versions.sh
counter_culture-2.1.1 test_rails_versions.sh
counter_culture-2.1.0 test_rails_versions.sh
counter_culture-2.0.1 test_rails_versions.sh
counter_culture-2.0.0 test_rails_versions.sh
counter_culture-1.12.0 test_rails_versions.sh
counter_culture-1.11.0 test_rails_versions.sh
counter_culture-1.10.0 test_rails_versions.sh
counter_culture-1.9.2 test_rails_versions.sh