Skip to content

Conversation

kpshek
Copy link
Contributor

@kpshek kpshek commented Jul 26, 2017

Update the Ruby versions that Travis-CI builds use to avoid errors during builds for missing Rubies. Additionally, by specifying just the major and minor version and not the revision (eg, 2.3 instead of 2.3.0), this will allow Travis to use the latest revision/patch during builds.

This should fix the recent Travis-CI build failures:

5.72s$ rvm use 2.1.0 --install --binary --fuzzy
ruby-2.1.0 is not installed - installing.
Searching for binary rubies, this might take some time.
Requested binary installation but no rubies are available to download, consider skipping --binary flag.
Gemset '' does not exist, 'rvm ruby-2.1.0 do rvm gemset create ' first, or append '--create'.
The command "rvm use 2.1.0 --install --binary --fuzzy" failed and exited with 2 during .
Your build has been stopped.

…ring

builds for missing Rubies. Additionally, by specifying just the major and
minor version and not the revision (eg, 2.3 instead of 2.3.0), this will
allow Travis to use the latest revision/patch during builds.
@kpshek kpshek temporarily deployed to cds-hooks-docs-pr-70 July 26, 2017 07:22 Inactive
@kpshek
Copy link
Contributor Author

kpshek commented Jul 26, 2017

For some reason, the Travis CI builds started failing as the Travis build machines could not find a precompiled Ruby 2.1.0. In researching this error, I found that the best practice is to reference Ruby versions up to the minor release (eg, 2.1 instead of 2.1.0) and let Travis choose the latest Ruby on that minor release.

Previously, we were building with both 2.0.0 and 2.1.0. This pull request changes that to simply 2.3 (so 2.3.x). I tried also building with 2.4 (so 2.4.x) but version of the json gem we're pulling in doesn't support Ruby 2.4 (see ruby/json#303).

I'm going to merge these changes into master and sync all branches so that the Travis CI builds start passing again.

@kpshek kpshek merged commit 17d526d into master Jul 26, 2017
@kpshek kpshek deleted the tweak-ruby-version-travisci branch July 26, 2017 07:36
schneems pushed a commit to schneems/docs that referenced this pull request Jul 28, 2025
…ck-toml

Add blurb about api value in buildpack.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant