Sha256: 1c0260bea39c247c76d9b49e2de823e6acd04a701762c25a71b413108ca16e61
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'rake' require 'rspec/core/rake_task' require 'puppet-lint/tasks/puppet-lint' require 'puppetlabs_spec_helper/rake_tasks' desc 'Run unit tests' task :unit do Rake::Task[:spec_prep].invoke Rake::Task[:spec_standalone].invoke end task :spec => []; Rake::Task[:spec].clear task :spec => :unit desc 'Run integration tests' task :integ do Rake::Task[:spec_prep].invoke puts 'Launching Vagrant to run integration tests...' sh 'vagrant up --provision' end desc 'Run syntax, lint and unit tests' task :test do Rake::Task[:syntax].invoke Rake::Task[:lint].invoke Rake::Task[:unit].invoke Rake::Task[:integ].invoke end # puppet-lint options Rake::Task[:lint].clear PuppetLint::RakeTask.new :lint do |config| config.ignore_paths = ['spec/**/*.pp'] config.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}' config.disable_checks = [ "class_inherits_from_params_class", "80chars" ] config.fail_on_warnings = false end # remove undesired rake tasks task :build => []; Rake::Task[:build].clear task :clean => []; Rake::Task[:clean].clear task :default => []; Rake::Task[:default].clear task :default => :test
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-magnum-3.1.5 | generator_files/util/Rakefile.erb |