forked from attr-encrypted/attr_encrypted
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modern Ruby + ActiveRecord, Update Travis Config (attr-encrypted#416)
* Update Travis configuration * Drop os, use default * Use focal for OS * Restore patch versions of ruby, rvm not pulling latest patch * Update local test/run.sh script for easier local testing * Add some old AR back, remove 3+ rubies, drop deprecated codeclimate gem * Lock sqlite3 for Ruby 2.5 * ActiveRecord 6.0 and 6.1 tests failing, add later * Drop 2.5 * Update gemspec, pry for dev support * 5.1.1 AR works, update test/run.sh * Fix support for ActiveRecord 5.2
- Loading branch information
1 parent
028ec5e
commit 82f6d70
Showing
6 changed files
with
88 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
#!/usr/bin/env sh -e | ||
#!/usr/bin/env bash | ||
|
||
for RUBY in 1.9.3 2.0.0 2.1 2.2 | ||
set -e | ||
|
||
for RUBY in 2.6.10 2.7.6 | ||
do | ||
for RAILS in 2.3.8 3.0.0 3.1.0 3.2.0 4.0.0 4.1.0 4.2.0 | ||
for ACTIVERECORD in 5.1.1 5.2.8 | ||
do | ||
if [[ $RUBY -gt 1.9.3 && $RAILS -lt 4.0.0 ]]; then | ||
continue | ||
fi | ||
RBENV_VERSION=$RUBY ACTIVERECORD=$RAILS bundle && bundle exec rake | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters