Merge pull request #433 from electrofelix/enable-travis

Enable travis CI testing of github PRs
This commit is contained in:
Dmitry Vasilets 2015-08-01 09:32:20 +02:00
commit cc28c54a0f
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
# gem dependency because we expect to be installed within the
# 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'
end