Sha256: f3758feca486ba3c3cb1c85527c38d09190968bba9c59c31bef78c289f7cdf59

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

#!/bin/bash

ruby_v=$(ruby -v)

ACTIVERECORD_VERSION='3.2' bundle update
ACTIVERECORD_VERSION='3.2' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='3.2' ENABLE_TRANSITIONS='false' bundle exec rake test

ACTIVERECORD_VERSION='4.0' bundle update
ACTIVERECORD_VERSION='4.0' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='4.0' ENABLE_TRANSITIONS='false' bundle exec rake test

ACTIVERECORD_VERSION='4.1' bundle update
ACTIVERECORD_VERSION='4.1' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='4.1' ENABLE_TRANSITIONS='false' bundle exec rake test

ACTIVERECORD_VERSION='4.2' bundle update
ACTIVERECORD_VERSION='4.2' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='4.2' ENABLE_TRANSITIONS='false' bundle exec rake test

ACTIVERECORD_VERSION='5.0' bundle update
ACTIVERECORD_VERSION='5.0' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='5.0' ENABLE_TRANSITIONS='false' bundle exec rake test

ACTIVERECORD_VERSION='5.1' bundle update
ACTIVERECORD_VERSION='5.1' ENABLE_TRANSITIONS='true' bundle exec rake test
ACTIVERECORD_VERSION='5.1' ENABLE_TRANSITIONS='false' bundle exec rake test

if [[ ! $ruby_v =~ '2.2.0' ]]; then
  ACTIVERECORD_VERSION='5.2' bundle update
  ACTIVERECORD_VERSION='5.2' ENABLE_TRANSITIONS='true' bundle exec rake test
  ACTIVERECORD_VERSION='5.2' ENABLE_TRANSITIONS='false' bundle exec rake test
fi

if [[ $ruby_v =~ '2.5.' ]] || [[ $ruby_v =~ '2.6.' ]] || [[ $ruby_v =~ '2.7.' ]]; then
  ACTIVERECORD_VERSION='6.0' bundle update
  ACTIVERECORD_VERSION='6.0' ENABLE_TRANSITIONS='true' bundle exec rake test
  ACTIVERECORD_VERSION='6.0' ENABLE_TRANSITIONS='false' bundle exec rake test
fi

bundle update
ENABLE_TRANSITIONS='true' bundle exec rake test
ENABLE_TRANSITIONS='false' bundle exec rake test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
u-case-4.2.1 .travis.sh