vagrant-libvirt/Gemfile
Darragh Bailey 66d394d42e
Switch from travis to github actions for unit tests (#1206)
Migrate to github actions as travis has switched to a process that will
require requesting minutes regularly for open source projects, and
current development is slow enough that this additional overhead is too
much.

Correct the generation of the line coverage following the example at
coverallsapp/github-action#29. Remove dependency on coveralls
gem as no longer needed if using the action.

Patch older versions of simplecov to contain a branch_coverage?
method to ensure working with simplecov-lcov.
2021-02-20 15:23:16 +00:00

39 lines
1.1 KiB
Ruby

source 'https://rubygems.org'
# Specify your gem's dependencies in vagrant-libvirt.gemspec
gemspec
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`.
vagrant_version = ENV['VAGRANT_VERSION']
if vagrant_version
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git',
tag: vagrant_version
else
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git'
end
begin
raise if vagrant_version.empty?
vagrant_version = vagrant_version[1..-1] if vagrant_version && vagrant_version.start_with?('v')
vagrant_gem_version = Gem::Version.new(vagrant_version)
rescue
# default to newer if unable to parse
vagrant_gem_version = Gem::Version.new('2.2.8')
end
if vagrant_gem_version <= Gem::Version.new('2.2.7')
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
else
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :branch => "main"
end
gem 'pry'
end
group :plugins do
gemspec
end