Enable travis CI testing of github PRs

Add travis CI and support testing against a matrix of vagrant versions.
This commit is contained in:
Darragh Bailey 2015-07-29 17:35:09 +01:00
parent a46545e66c
commit 4c7a0d5db0
2 changed files with 26 additions and 1 deletions

20
.travis.yml Normal file
View 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

View File

@ -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