Skip to content

Commit

Permalink
Release v3.0.0 - Transition to Puppet v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoneycutt committed Nov 2, 2016
1 parent 6dbd7ee commit 5b57e28
Show file tree
Hide file tree
Showing 51 changed files with 1,005 additions and 4,859 deletions.
23 changes: 3 additions & 20 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
fixtures:
repositories:
firewall:
repo: 'https://github.com/puppetlabs/puppetlabs-firewall.git'
ref: '1.7.1'
inifile:
repo: 'https://github.com/puppetlabs/puppetlabs-inifile.git'
ref: '1.6.0'
stdlib:
repo: 'https://github.com/puppetlabs/puppetlabs-stdlib.git'
ref: '4.6.0'
mysql:
repo: 'https://github.com/puppetlabs/puppetlabs-mysql.git'
ref: '2.0.1-rc1'
passenger:
repo: 'https://github.com/puppetlabs/puppetlabs-passenger.git'
ref: '0.4.1'
apache:
repo: 'https://github.com/puppetlabs/puppetlabs-apache.git'
ref: '0.5.0-rc1'
concat:
repo: 'https://github.com/puppetlabs/puppetlabs-concat.git'
ref: '1.2.5'
common:
repo: 'https://github.com/ghoneycutt/puppet-module-common.git'
ref: 'v1.6.0'
htpasswd:
repo: 'https://github.com/leinaddm/puppet-htpasswd.git'
symlinks:
puppet: "#{source_dir}"
42 changes: 42 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
Exclude:
- vendor/**/*
- pkg/**/*
- spec/fixtures/**/*

# Cop's to ignore

# With this enabled it suggests a change that will break the Gemfile
Lint/AssignmentInCondition:
Enabled: false

Metrics/LineLength:
Enabled: false

# This is a good idea, but does not line up the rest of the lines making it
# harder to read
Style/IndentHash:
Enabled: false

Style/Next:
Enabled: false

# If enabled, this cop makes it harder to understand the logic
Style/NonNilCheck:
Enabled: false

Style/TrailingCommaInLiteral:
Enabled: false

Style/TrailingCommaInArguments:
Enabled: false

# Cop's that require ruby >= 1.9
Style/HashSyntax:
Enabled: false

Style/BracesAroundHashParameters:
Enabled: false
28 changes: 4 additions & 24 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,20 @@
language: ruby

rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.0
- 2.1.9
- 2.3.1

env:
matrix:
- PUPPET_GEM_VERSION="~> 3.1.0"
- PUPPET_GEM_VERSION="~> 3.2.0"
- PUPPET_GEM_VERSION="~> 3.3.0"
- PUPPET_GEM_VERSION="~> 3.4.0"
- PUPPET_GEM_VERSION="~> 3.5.1"
- PUPPET_GEM_VERSION="~> 3.6.0"
- PUPPET_GEM_VERSION="~> 3.7.0"
- PUPPET_GEM_VERSION="~> 3.8.0"
- PUPPET_GEM_VERSION="~> 3"
- PUPPET_GEM_VERSION="~> 4.7.0"
- PUPPET_GEM_VERSION="~> 4"

sudo: false

script: 'bundle exec rake validate && bundle exec rake lint && SPEC_OPTS="--format documentation" bundle exec rake spec'

matrix:
fast_finish: true
exclude:
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.1.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.1.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.1.0
env: PUPPET_GEM_VERSION="~> 3.4.0"

notifications:
email: false
49 changes: 23 additions & 26 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
source 'https://rubygems.org'
source ENV['GEM_SOURCE'] || 'https://rubygems.org'

if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', :require => false
end

gem 'metadata-json-lint'
gem 'puppetlabs_spec_helper', '>= 1.1.1'
gem 'facter', '>= 1.7.0'
gem 'puppet-lint', '>= 1.0', '< 3.0'
gem 'puppet-lint-absolute_classname-check'
gem 'puppet-lint-alias-check'
gem 'puppet-lint-empty_string-check'
gem 'puppet-lint-file_ensure-check'
gem 'puppet-lint-file_source_rights-check'
gem 'puppet-lint-leading_zero-check'
gem 'puppet-lint-spaceship_operator_without_tag-check'
gem 'puppet-lint-trailing_comma-check'
gem 'puppet-lint-undef_in_function-check'
gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-variable_contains_upcase'

# rspec must be v2 for ruby 1.8.7
if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '1.9'
gem 'rspec', '~> 2.0'
gem 'rake', '~> 10.0'
end

if RUBY_VERSION >= '1.8.7' and RUBY_VERSION < '2.0'
gem 'json', '~> 1.0'
end
gem 'metadata-json-lint', :require => false
gem 'rspec-puppet', :require => false
gem 'rspec-puppet-facts', :require => false
gem 'rubocop', :require => false
gem 'puppetlabs_spec_helper', '>= 1.2.0', :require => false
gem 'facter', '>= 2.0', :require => false
gem 'hiera', '~> 3.0', :require => false
gem 'puppet-lint', '~> 2.0', :require => false
gem 'puppet-lint-absolute_classname-check', :require => false
gem 'puppet-lint-alias-check', :require => false
gem 'puppet-lint-classes_and_types_beginning_with_digits-check', :require => false
gem 'puppet-lint-empty_string-check', :require => false
gem 'puppet-lint-file_ensure-check', :require => false
gem 'puppet-lint-file_source_rights-check', :require => false
gem 'puppet-lint-leading_zero-check', :require => false
gem 'puppet-lint-resource_reference_syntax', :require => false
gem 'puppet-lint-spaceship_operator_without_tag-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
gem 'puppet-lint-undef_in_function-check', :require => false
gem 'puppet-lint-unquoted_string-check', :require => false
gem 'puppet-lint-variable_contains_upcase', :require => false
gem 'puppet-lint-version_comparison-check', :require => false
Loading

0 comments on commit 5b57e28

Please sign in to comment.