Add a script to install appraisals in all supported Rubies
This commit is contained in:
parent
e349381186
commit
b71996eeff
|
@ -0,0 +1 @@
|
|||
1.9.2 1.9.3 2.0.0 2.1.1
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)
|
||||
|
||||
install-gems-for-version() {
|
||||
local version="$1"
|
||||
|
||||
if [[ $version == "latest" ]]; then
|
||||
version=""
|
||||
fi
|
||||
|
||||
(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
|
||||
|
||||
install-gems-for-version latest
|
Loading…
Reference in New Issue