Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.ruby-version setup & upgrade to 2.3.0
- Loading branch information
Showing
12 changed files
with
55 additions
and
87 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
*~ | ||
.loadpath | ||
.project | ||
.ruby-version | ||
.sass-cache | ||
jhw.* | ||
log/* | ||
|
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 @@ | ||
2.3.0 |
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,14 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
set -u | ||
BUNLDE_VERSION_DIGEST=`git hash-object 'Gemfile.lock'` | ||
BUNDLE_CACHE_STAMP_FILE="/tmp/MADEK_BUNDLED_${BUNLDE_VERSION_DIGEST}_${RBENV_VERSION}" | ||
_RUBY_VERSION=$(cat .ruby-version) | ||
BUNDLE_VERSION_DIGEST=`git hash-object 'Gemfile.lock'` | ||
BUNDLE_CACHE_STAMP_FILE="/tmp/LEIHS_BUNDLED_${BUNDLE_VERSION_DIGEST}_${_RUBY_VERSION}" | ||
if [ -e "$BUNDLE_CACHE_STAMP_FILE" ]; then | ||
echo "BUNDLE_CACHE_STAMP_FILE ${BUNDLE_CACHE_STAMP_FILE} exists, doing nothing" | ||
else | ||
echo "bundling..." | ||
bundle | ||
echo "bundled $(date)" >> "$BUNDLE_CACHE_STAMP_FILE" | ||
rbenv rehash | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bundle: | ||
exclusive-executor-resource: bundler | ||
timeout: 20 Minutes | ||
body: cider-ci/bin/bundle_with_cachestamp.sh | ||
start-when: | ||
- script: setup-ruby |
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,21 @@ | ||
setup-ruby: | ||
exclusive-executor-resource: rbenv | ||
timeout: 20 Minutes | ||
body: | | ||
#!/usr/bin/env bash | ||
set -eux | ||
_RUBY_VERSION=$(cat .ruby-version) | ||
function remove_possibly_broken_ruby { | ||
rm -rf $HOME/.rbenv/versions/$_RUBY_VERSION | ||
} | ||
trap remove_possibly_broken_ruby ERR SIGINT SIGTERM | ||
if [ ! -d $HOME/.rbenv/versions/$_RUBY_VERSION ]; then | ||
rm -rf ~/.rbenv/plugins/* | ||
curl --silent https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | ||
rbenv install $_RUBY_VERSION | ||
gem install bundler | ||
rbenv rehash | ||
fi |
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