Skip to content

Commit

Permalink
Update util scripts to use Ruby versions in .travis.yml
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mcmire committed Jan 24, 2018
1 parent 020c01a commit de25e8f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
1 change: 0 additions & 1 deletion script/SUPPORTED_VERSIONS

This file was deleted.

4 changes: 3 additions & 1 deletion script/install_gems_in_all_appraisals
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)
set -euo pipefail

SUPPORTED_VERSIONS=$(script/supported_ruby_versions)

install-gems-for-version() {
local version="$1"
Expand Down
4 changes: 3 additions & 1 deletion script/run_all_tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)
set -euo pipefail

SUPPORTED_VERSIONS=$(script/supported_ruby_versions)

run-tests-for-version() {
local version="$1"
Expand Down
7 changes: 7 additions & 0 deletions script/supported_ruby_versions
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(' ')
4 changes: 3 additions & 1 deletion script/update_gem_in_all_appraisals
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)
set -euo pipefail

SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
gem="$1"

update-gem-for-version() {
Expand Down
4 changes: 3 additions & 1 deletion script/update_gems_in_all_appraisals
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS)
set -euo pipefail

SUPPORTED_VERSIONS=$(script/supported_ruby_versions)

update-gems-for-version() {
local version="$1"
Expand Down

0 comments on commit de25e8f

Please sign in to comment.