Testing against multiple Vagrant versions using Travis-CI

Emyl

I'd like to test my Vagrant plugin against multiple versions, using for each release the same ruby version embedded with the Vagrant package. I've created the following configuration file for Travis CI:

language: ruby
matrix:
  include:
    - rvm: 1.8.7-p357
      gemfile: gemfiles/vagrant1_1.gemfile
    - rvm: 1.9.3-p448
      gemfile: gemfiles/vagrant1_2.gemfile
      gemfile: gemfiles/vagrant1_3.gemfile
    - rvm: 2.0.0-p353
      gemfile: Gemfile

But when I try to validate this configuration against the Travis Lint web service I receive the following error:

Found an issue with the rvm key:

Specify Ruby versions/implementations you want to test against using the "rvm" key

First experience with Travis CI, I can't understand what I'm doing wrong.

tmatilai

Travis seems to require that you specify at least one default rvm. Like:

language: ruby
rvm: 2.0.0
matrix:
  # ...

Other issue is that I'm quite sure the second gemfile in '1.9.3-p448' will just override the first one.

And third, Vagrant officially supports only one Ruby version. Before 1.4 Vagrant only works with Ruby 1.9.3, from 1.4 on with Ruby 2.0.0. You might not hit problems in plugin's unit tests, but no need to consume Travis resources. =)

For env var based approach (instead of Gemfile based), see vagrant-proxyconf's .travis.yml and Gemfile.


Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Using Travis CI for testing on UNIX shell scripts

Local testing of Perl repository using Travis CI (with docker)

Testing Actionmailer on Travis-CI

Multiple Environments in Travis CI

Using Travis CI with Android

How to use recent Boost versions with Travis CI

Testing matplotlib-based plots in Travis CI

Travis CI Fail Jest testing for Timeout reason

travis running my tests against different versions of ember

Using Vagrant on cloud CI services

Best methodology to test against multiple Java versions

Travis not starting jobs for multiple python versions

SignalR Error During Negotation Request When Testing Against Vagrant VM

Does Travis ci allow ghc versions larger than 7.8?

How to use different R versions to test packages with Travis-CI?

Testing office-js addins against old versions of excel

How to set up Travis CI with multiple languages

Preventing conflicts when deploying multiple distros to PyPI using Travis-CI

using different libc++ versions on travis for clang

Testing a range against multiple criteria in IF formula

How can we execute WebUI feature file against multiple browsers using parallel runner or distributed testing?

How to add tests/ directory to PYTHONPATH when testing with Travis-CI?

Travis CI - Using repository environment variables in .travis.yml

Sonarcloud is not authorized using Travis CI and Maven

using travis-ci with wxpython tests

Error authenticating Github using Travis CI

Travis CI, update CMake using the packages cache

Using Paid Travis CI for Public Repositories

Deploy Docker Image to CF using Travis CI