-
Notifications
You must be signed in to change notification settings - Fork 325
/
Gemfile
38 lines (31 loc) · 1.32 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
gemspec
# This section of the gemspec is for Puppet CI; it will pull in
# a supported beaker library for testing to overwrite the gemspec if
# a corresponding ENV var is found. Currently, the only supported lib
# is beaker-pe, which can be injected into the dependencies when the
# following ENV vars are defined: BEAKER_PE_PR_AUTHOR,
# BEAKER_PE_PR_COMMIT, BEAKER_PE_PR_REPO_URL. These correspond to the
# ghprb variables ghprbPullAuthorLogin, ghprbActualCommit,
# and ghprbAuthorRepoGitUrl respectively. In the "future", we should
# make this a standard format so we can pull in more than predefined
# variables.
if ENV['BEAKER_PE_PR_REPO_URL']
lib = ENV['BEAKER_PE_PR_REPO_URL'].match(/\/([^\/]+)\.git$/)[1]
author = ENV.fetch('BEAKER_PE_PR_AUTHOR', nil)
ref = ENV.fetch('BEAKER_PE_PR_COMMIT', nil)
gem lib, :git => "git@github.com:#{author}/#{lib}.git", :branch => ref
end
if ENV['BEAKER_HYPERVISOR']
# vagrant_libvirt -> vagrant
gem "beaker-#{ENV['BEAKER_HYPERVISOR'].split('_').first}"
end
group :release do
gem 'faraday-retry', require: false
gem 'github_changelog_generator', require: false
end
group :coverage, optional: ENV['COVERAGE'] != 'yes' do
gem 'codecov', :require => false
gem 'simplecov-console', :require => false
end
gem 'rdoc' if RUBY_VERSION >= '3.1'