diff --git a/.gitignore b/.gitignore index 21ff4928..3c1af2d4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,8 @@ Gemfile.lock Gemfile.local vendor/ .vendor/ -spec/fixtures/ +spec/fixtures/manifests/ +spec/fixtures/modules/ .vagrant/ .bundle/ coverage/ diff --git a/.msync.yml b/.msync.yml index 0ac5eef4..e33088ec 100644 --- a/.msync.yml +++ b/.msync.yml @@ -1 +1 @@ -modulesync_config_version: '0.12.0' +modulesync_config_version: '0.12.7' diff --git a/.rubocop.yml b/.rubocop.yml index 5aadd1b6..d6a39488 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,7 @@ AllCops: Include: - ./**/*.rb Exclude: + - files/**/* - vendor/**/* - .vendor/**/* - pkg/**/* @@ -492,7 +493,7 @@ Lint/UselessAssignment: Enabled: True Style/ClosingParenthesisIndentation: - Enabled: False + Enabled: True # RSpec diff --git a/.travis.yml b/.travis.yml index 3dffb2d9..d6b1bf08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,27 +19,27 @@ matrix: env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test - rvm: 1.9.3 env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" FUTURE_PARSER="yes" CHECK=test - - rvm: 2.1 + - rvm: 2.1.9 env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 2.1 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test - - rvm: 2.2 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test + - rvm: 2.1.9 + env: PUPPET_VERSION="~> 4.0" CHECK=test + - rvm: 2.2.5 + env: PUPPET_VERSION="~> 4.0" CHECK=test - rvm: 2.3.1 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=build + env: PUPPET_VERSION="~> 4.0" CHECK=build DEPLOY_TO_FORGE=yes - rvm: 2.3.1 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=rubocop + env: PUPPET_VERSION="~> 4.0" CHECK=rubocop - rvm: 2.3.1 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test + env: PUPPET_VERSION="~> 4.0" CHECK=test - rvm: 2.4.0-preview1 - env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test + env: PUPPET_VERSION="~> 4.0" CHECK=test allow_failures: - rvm: 2.4.0-preview1 notifications: email: false deploy: provider: puppetforge - edge: + deploy: branch: ha-bug-puppet-forge user: puppet password: @@ -48,5 +48,5 @@ deploy: tags: true # all_branches is required to use tags all_branches: true - # Only publish if our main Ruby target builds - rvm: 2.3.1 + # Only publish the build marked with "DEPLOY_TO_FORGE" + condition: "$DEPLOY_TO_FORGE = yes" diff --git a/Gemfile b/Gemfile index ddbd23d5..8613079c 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ def location_for(place, fake_version = nil) end group :test do - gem 'puppetlabs_spec_helper', :require => false + gem 'puppetlabs_spec_helper', '~> 1.2.2', :require => false gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git' gem 'rspec-puppet-facts', :require => false gem 'rspec-puppet-utils', :require => false @@ -25,7 +25,7 @@ group :test do gem 'metadata-json-lint', :require => false gem 'puppet-blacksmith', :require => false gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git' - gem 'puppet-strings', :require => false, :git => 'https://github.com/puppetlabs/puppetlabs-strings.git' + gem 'puppet-strings', '0.4.0', :require => false gem 'rubocop-rspec', '~> 1.6', :require => false if RUBY_VERSION >= '2.3.0' gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION < '2.0.0' end diff --git a/Rakefile b/Rakefile index 9cbcf7ce..5191307f 100644 --- a/Rakefile +++ b/Rakefile @@ -34,11 +34,9 @@ RSpec::Core::RakeTask.new(:acceptance) do |t| t.pattern = 'spec/acceptance' end -desc 'Run tests metadata_lint, lint, syntax, spec' +desc 'Run tests metadata_lint, release_checks' task test: [ :metadata_lint, - :lint, - :syntax, - :spec, + :release_checks, ] # vim: syntax=ruby diff --git a/tests/gpgkey.pp b/examples/gpgkey.pp similarity index 100% rename from tests/gpgkey.pp rename to examples/gpgkey.pp diff --git a/tests/group.pp b/examples/group.pp similarity index 100% rename from tests/group.pp rename to examples/group.pp diff --git a/tests/install.pp b/examples/install.pp similarity index 100% rename from tests/install.pp rename to examples/install.pp diff --git a/tests/plugin.pp b/examples/plugin.pp similarity index 100% rename from tests/plugin.pp rename to examples/plugin.pp diff --git a/tests/versionlock.pp b/examples/versionlock.pp similarity index 100% rename from tests/versionlock.pp rename to examples/versionlock.pp