tag:help.appveyor.com,2012-11-13:/discussions/problems/6143-when-a-given-ruby-version-is-not-found-appveyor-script-falls-back-to-19-silentlyAppVeyor: Discussion 2018-10-19T08:18:13Ztag:help.appveyor.com,2012-11-13:Comment/420347662017-02-26T20:56:59Z2017-02-26T20:56:59ZWhen a given Ruby version is not found, AppVeyor script falls back to 1.9 silently<div><p>You can easily achieve that by adding a simple line to your
<code>appveyor.yml</code>:</p>
<pre>
<code>init:
- ps: if(-not (test-path "C:\Ruby$env:RUBY_VERSION")) { throw "Ruby $env:RUBY_VERSION not found."; }</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/420347662017-02-26T21:07:52Z2018-01-18T21:00:07ZWhen a given Ruby version is not found, AppVeyor script falls back to 1.9 silently<div><p>Great, thanks! I think it would be a good addition to the page I mentioned.</p>
<p>Thanks!</p>
<p>-- Thibaut</p>
<p>2017-02-26 21:57 GMT+01:00 Feodor Fitsner <a href="mailto:tender2+d00e2d5e5d@tenderapp.com">tender2+d00e2d5e5d@tenderapp.com</a><br>
:</p></div>thibaut.barrere