travis-ci not switching to the specified ruby version on an android project build -


i trying run ruby-based tool after successful travis build android, , in order need rvm version 2.0.0, when specified rvm version in .travis.yml file, doing bundle install provides following error:

your ruby version 1.9.3, gemfile specified 2.0.0

to try , travis recognize ruby version tried following:

  • created .ruby-version file 2.0.0
  • set rvm version on .travis.yml this:
language: android rvm:   - 2.0.0 ... after_script: - bundle install 

  • set ruby version on gemfile match desired rvm version:

    ruby: '2.0.0'

none of these settings worked , got above message. there else i'm forgetting do?

thanks , regards, federico.-

as per travis-ci support:

"for android builds, rvm has 1.9.3 installed (and not expand rvm section in .travis.yml non-ruby builds specifications in section ignored). ruby 2.0.0 android images, use: in before_install section can add appropriate lines install/enable via rvm, like:

before_install:    - rvm install 2.0.0 

so removed 'rvm' section on travis.yml , added 'rvm install 2.0.0' on before_install section , solved problem.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -