File: run.sh

package info (click to toggle)
ruby-attr-encrypted 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 296 kB
  • sloc: ruby: 1,633; sh: 16; makefile: 7
file content (20 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

set -e

for RUBY in 2.6.10 2.7.6
do
  for ACTIVERECORD in 5.1.1 5.2.8
  do
    echo ">>> Testing with Ruby ${RUBY} and ActiveRecord ${ACTIVERECORD}."
    export RBENV_VERSION=$RUBY
    export ACTIVERECORD=$ACTIVERECORD

    rbenv install $RUBY --skip-existing
    bundle install
    bundle check
    bundle exec rake test
    rm Gemfile.lock
    echo ">>> Finished testing with Ruby ${RUBY} and ActiveRecord ${ACTIVERECORD}."
  done
done