-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
39 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
--- | ||
sudo: false | ||
language: ruby | ||
cache: bundler | ||
bundler_args: --without development | ||
script: | ||
- puppet --version | ||
- "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'" | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 1.9.3 | ||
env: PUPPET_GEM_VERSION="~> 3.0" | ||
- rvm: 2.1.5 | ||
env: PUPPET_GEM_VERSION="~> 3.0" | ||
- rvm: 2.1.6 | ||
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes" | ||
- rvm: 2.1.7 | ||
env: PUPPET_GEM_VERSION="~> 4.0" | ||
- rvm: 2.3.1 | ||
env: PUPPET_GEM_VERSION="~> 4.0" | ||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
source 'https://rubygems.org' | ||
|
||
puppetversion = ENV.key?('PUPPET_VERSION') ? "= #{ENV['PUPPET_VERSION']}" : ['>= 2.7'] | ||
gem 'puppet', puppetversion | ||
# Find a location or specific version for a gem. place_or_version can be a | ||
# version, which is most often used. It can also be git, which is specified as | ||
# `git://somewhere.git#branch`. You can also use a file source location, which | ||
# is specified as `file://some/location/on/disk`. | ||
def location_for(place_or_version, fake_version = nil) | ||
if place_or_version =~ /^(git[:@][^#]*)#(.*)/ | ||
[fake_version, { :git => $1, :branch => $2, :require => false }].compact | ||
elsif place_or_version =~ /^file:\/\/(.*)/ | ||
['>= 0', { :path => File.expand_path($1), :require => false }] | ||
else | ||
[place_or_version, { :require => false }] | ||
end | ||
end | ||
|
||
supports_windows = false | ||
|
||
gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) | ||
gem 'puppet-lint', '~> 2.0' | ||
gem 'puppetlabs_spec_helper', '~> 2.1' | ||
gem 'github_changelog_generator', '<= 1.14.3' | ||
gem 'rspec-puppet', '~> 2.5' | ||
gem 'rspec-puppet-facts' | ||
gem 'rspec-puppet-utils' | ||
gem 'metadata-json-lint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters