1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

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 #!/bin/bash
SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS) set -euo pipefail
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
install-gems-for-version() { install-gems-for-version() {
local version="$1" local version="$1"

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS) set -euo pipefail
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
run-tests-for-version() { run-tests-for-version() {
local version="$1" 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 #!/bin/bash
SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS) set -euo pipefail
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
gem="$1" gem="$1"
update-gem-for-version() { update-gem-for-version() {

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
SUPPORTED_VERSIONS=$(<script/SUPPORTED_VERSIONS) set -euo pipefail
SUPPORTED_VERSIONS=$(script/supported_ruby_versions)
update-gems-for-version() { update-gems-for-version() {
local version="$1" local version="$1"