Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing #22

Merged
merged 1 commit into from Feb 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .pmtignore
@@ -0,0 +1 @@
/spec/
10 changes: 10 additions & 0 deletions .travis.yml
Expand Up @@ -9,3 +9,13 @@ rvm:
script: bundle exec rake test
env:
- PUPPET_VERSION="~> 3.6.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 3.7.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 3.7.0" STRICT_VARIABLES=yes FUTURE_PARSER=yes
matrix:
exclude:
- rvm: 1.9.3
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.0.0
env: PUPPET_VERSION="~> 2.7.0"
- rvm: 2.1.0
env: PUPPET_VERSION="~> 2.7.0"
16 changes: 6 additions & 10 deletions Gemfile
@@ -1,26 +1,22 @@
source "https://rubygems.org"


group :test do
gem "rake"
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.6.0'
gem "puppet-lint"
gem 'rspec'
gem 'rspec-core'
gem 'rspec-mocks'
gem 'rspec-expectations'
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.7.0'
gem "rspec-puppet", :git => 'https://github.com/rodjek/rspec-puppet.git'
gem "puppet-syntax"
gem "puppetlabs_spec_helper"
gem "metadata-json-lint"
end

group :development do
gem "travis"
gem "travis-lint"
gem "vagrant-wrapper"
gem "puppet-blacksmith"
gem "guard-rake"
end

group :production do
gem 'ipaddress'
group :system_tests do
gem "beaker"
gem "beaker-rspec"
end
12 changes: 9 additions & 3 deletions Rakefile
@@ -1,17 +1,19 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet/vendor/semantic/lib/semantic'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'

# These two gems aren't always present, for instance
# These gems aren't always present, for instance
# on Travis with --without development
begin
require 'puppet_blacksmith/rake_tasks'
rescue LoadError
end

Rake::Task[:lint].clear

PuppetLint.configuration.relative = true
PuppetLint.configuration.send("disable_80chars")
PuppetLint.configuration.send('disable_single_quote_string_with_variables')
PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"
PuppetLint.configuration.fail_on_warnings = true

Expand All @@ -21,7 +23,12 @@ PuppetLint.configuration.send('disable_class_parameter_defaults')
# http://puppet-lint.com/checks/class_inherits_from_params_class/
PuppetLint.configuration.send('disable_class_inherits_from_params_class')

PuppetLint.configuration.send('disable_case_without_default')
PuppetLint.configuration.send('disable_double_quoted_strings')
#PuppetLint.configuration.send('disable_quoted_booleans')

exclude_paths = [
"bundle/**/*",
"pkg/**/*",
"vendor/**/*",
"spec/**/*",
Expand All @@ -45,4 +52,3 @@ task :test => [
:spec,
:metadata,
]

2 changes: 1 addition & 1 deletion metadata.json
Expand Up @@ -2,7 +2,7 @@
"name": "zleslie-poudriere",
"version": "0.1.3",
"author": "zleslie",
"license": "Licensed under (Apache 2.0)",
"license": "Apache-2.0",
"summary": "A module to manage the PkgNG build system",
"source": "https://github.com/xaque208/puppet-poudriere",
"project_page": "https://github.com/xaque208/puppet-poudriere",
Expand Down