mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Enable travis CI testing of github PRs
Add travis CI and support testing against a matrix of vagrant versions.
This commit is contained in:
parent
a46545e66c
commit
4c7a0d5db0
20
.travis.yml
Normal file
20
.travis.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
language: ruby
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -y libvirt-dev
|
||||||
|
- gem install bundler --version $BUNDLER_VERSION
|
||||||
|
install: bundle _${BUNDLER_VERSION}_ install
|
||||||
|
script: bundle _${BUNDLER_VERSION}_ exec rspec --color --format documentation
|
||||||
|
notifications:
|
||||||
|
email: false
|
||||||
|
rvm:
|
||||||
|
- 2.0.0
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
||||||
|
matrix:
|
||||||
|
- VAGRANT_VERSION=v1.5.4 BUNDLER_VERSION=1.5.3
|
||||||
|
- VAGRANT_VERSION=v1.6.5 BUNDLER_VERSION=1.6.9
|
||||||
|
- VAGRANT_VERSION=v1.7.0 BUNDLER_VERSION=1.7.9
|
||||||
|
- VAGRANT_VERSION= BUNDLER_VERSION=1.7.9
|
7
Gemfile
7
Gemfile
@ -7,7 +7,12 @@ group :development do
|
|||||||
# We depend on Vagrant for development, but we don't add it as a
|
# We depend on Vagrant for development, but we don't add it as a
|
||||||
# gem dependency because we expect to be installed within the
|
# gem dependency because we expect to be installed within the
|
||||||
# Vagrant environment itself using `vagrant plugin`.
|
# Vagrant environment itself using `vagrant plugin`.
|
||||||
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git'
|
if ENV['VAGRANT_VERSION']
|
||||||
|
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git',
|
||||||
|
tag: ENV['VAGRANT_VERSION']
|
||||||
|
else
|
||||||
|
gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git'
|
||||||
|
end
|
||||||
gem 'pry'
|
gem 'pry'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user