Update util scripts to use Ruby versions in .travis.yml

[ci skip]
This commit is contained in:
Elliot Winkler 2018-01-24 00:02:35 -06:00
parent 020c01a696
commit de25e8f7d8
6 changed files with 19 additions and 5 deletions

View File

@ -1 +0,0 @@
2.4.1 2.3.5 2.2.7

View File

@ -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"

View File

@ -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"

7
script/supported_ruby_versions Executable file
View File

@ -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(' ')

View File

@ -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() {

View File

@ -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"