diff options
author | Micah Anderson <micah@riseup.net> | 2016-11-04 10:54:28 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2016-11-04 10:54:28 -0400 |
commit | 34a381efa8f6295080c843f86bfa07d4e41056af (patch) | |
tree | 9282cf5d4c876688602705a7fa0002bc4a810bde /Rakefile | |
parent | 0a72bc6fd292bf9367b314fcb0347c4d35042f16 (diff) | |
parent | 5821964ff7e16ca7aa9141bd09a77d355db492a9 (diff) |
Merge branch 'develop'
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 8f7a9686..00000000 --- a/Rakefile +++ /dev/null @@ -1,47 +0,0 @@ -require 'puppetlabs_spec_helper/rake_tasks' -require 'puppet-lint/tasks/puppet-lint' -require 'puppet-syntax/tasks/puppet-syntax' - -# return list of modules, either -# submodules or custom modules -# so we can check each array seperately -def modules_pattern (type) - submodules = Array.new - custom_modules = Array.new - - Dir['puppet/modules/*'].sort.each do |m| - system("grep -q #{m} .gitmodules") - if $?.exitstatus == 0 - submodules << m + '/**/*.pp' - else - custom_modules << m + '/**/*.pp' - end - end - - if type == 'submodule' - submodules - elsif type == 'custom' - custom_modules - else - end - -end - - - -# redefine lint task with specific configuration -Rake::Task[:lint].clear -desc "boo" -PuppetLint::RakeTask.new :lint do |config| - # Pattern of files to check, defaults to `**/*.pp` - config.pattern = modules_pattern('custom') - config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"] - config.disable_checks = ['documentation', '80chars'] - config.fail_on_warnings = false -end - -# rake syntax::* tasks -PuppetSyntax.exclude_paths = ["**/vendor/**/*"] - -desc "Run all puppet checks required for CI" -task :test => [:lint, :syntax , :validate, :spec] |