Skip to content

Commit

Permalink
Merge pull request #6 from jlambert121/rake_updates
Browse files Browse the repository at this point in the history
add additional default checks
  • Loading branch information
jlambert121 committed Aug 30, 2013
2 parents 1e98979 + f94febc commit 3ffb7a8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
15 changes: 10 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
source :rubygems
source 'https://rubygems.org'

puppetversion = ENV['PUPPET_VERSION']
gem 'puppet', puppetversion, :require => false
gem 'rake'
gem 'puppet-lint'
gem 'rspec-puppet'
gem 'puppetlabs_spec_helper', '>= 0.4.0'

gem 'rspec-system-puppet'
gem 'rspec-system-serverspec'
gem 'puppetlabs_spec_helper'
gem 'travis'
gem 'travis-lint'
gem 'puppet-syntax'
gem 'puppet', ENV['PUPPET_VERSION'] || '~> 3.2.0'
gem 'vagrant-wrapper'
26 changes: 25 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
require 'rubygems'
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint'
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-syntax/tasks/puppet-syntax'
require 'rspec-system/rake_task'

exclude_paths = [
"pkg/**/*",
"vendor/**/*",
"spec/**/*",
]

PuppetLint.configuration.log_format = "%{path}:%{linenumber}:%{check}:%{KIND}:%{message}"
PuppetLint.configuration.fail_on_warnings = true
PuppetLint.configuration.send("disable_80chars")
PuppetLint.configuration.send("disable_autoloader_layout")
PuppetLint.configuration.send("disable_quoted_booleans")
PuppetLint.configuration.send('disable_class_parameter_defaults')
PuppetLint.configuration.send('disable_class_inherits_from_params_class')
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths

task :default => [:test]

desc "Run syntax, lint, and spec tests."
task :test => [
:syntax,
:lint,
:spec,
]

0 comments on commit 3ffb7a8

Please sign in to comment.