-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add helper scripts for managing appraisals
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
SUPPORTED_VERSIONS=$(script/supported_ruby_versions) | ||
|
||
install-gems-for-version() { | ||
local version="$1" | ||
(export RBENV_VERSION=$version; bundle && bundle exec appraisal install) | ||
} | ||
|
||
for version in $SUPPORTED_VERSIONS; do | ||
echo | ||
echo "*** Installing gems for $version ***" | ||
install-gems-for-version $version | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
SUPPORTED_VERSIONS=$(script/supported_ruby_versions) | ||
|
||
run-tests-for-version() { | ||
local version="$1" | ||
(export RBENV_VERSION=$version; bundle exec rake) | ||
} | ||
|
||
for version in $SUPPORTED_VERSIONS; do | ||
echo | ||
echo "*** Running tests for $version ***" | ||
run-tests-for-version $version | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'yaml' | ||
|
||
travis_config_path = File.expand_path('../../.travis.yml', __FILE__) | ||
travis_config = YAML.load_file(travis_config_path) | ||
puts travis_config.fetch('rvm').join(' ') |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
SUPPORTED_VERSIONS=$(script/supported_ruby_versions) | ||
gem="$1" | ||
|
||
update-gem-for-version() { | ||
local version="$1" | ||
(export RBENV_VERSION=$version; bundle update "$gem"; bundle exec appraisal update "$gem") | ||
} | ||
|
||
for version in $SUPPORTED_VERSIONS; do | ||
echo | ||
echo "*** Updating $gem for $version ***" | ||
update-gem-for-version $version | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
SUPPORTED_VERSIONS=$(script/supported_ruby_versions) | ||
|
||
update-gems-for-version() { | ||
local version="$1" | ||
(export RBENV_VERSION=$version; bundle update "${@:2}"; bundle exec appraisal update "${@:2}") | ||
} | ||
|
||
for version in $SUPPORTED_VERSIONS; do | ||
echo | ||
echo "*** Updating gems for $version ***" | ||
update-gems-for-version "$version" "$@" | ||
done |