Skip to content

Commit c933af1

Browse files
committed
Set ruby version via file during CI
1 parent 2e5e777 commit c933af1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/cibuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
1818
export OUTPUT_FILE="$(mktemp)"
1919
function cleanup() {
2020
rm -rf "$OUTPUT_FILE"
21+
rm -f "${DIR}/.ruby-version"
2122
}
2223
trap cleanup EXIT
2324

25+
# Create "$DIR/.ruby-version" from the current ruby version, so it propagates through
26+
# to the clean environment under which Puppet runs.
27+
ruby -e "print RUBY_VERSION" > "${DIR}/.ruby-version"
28+
2429
# Bootstrapping
2530
function bootstrap() {
2631
echo "Bootstrapping..."

0 commit comments

Comments
 (0)