-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (36 loc) · 1.07 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'rubygems'
require 'rake'
require 'puppet-syntax/tasks/puppet-syntax'
require 'puppet-lint/tasks/puppet-lint'
require 'puppetlabs_spec_helper/rake_tasks'
exclude_paths = [
"pkg/**/*",
"spec/**/*",
]
PuppetLint.configuration.send('disable_80chars')
PuppetLint.configuration.send('disable_variable_scope')
PuppetLint.configuration.send('disable_autoloader_layout')
PuppetLint.configuration.ignore_paths = exclude_paths
PuppetSyntax.exclude_paths = exclude_paths
desc "Run syntax, lint, and spec tests."
task :test => [
:syntax,
# Create files in tasks for language syntax, then run all of them
# Dir['spec/**/*.rb','lib/**/*.rb'].each do |ruby_file|
# sh "ruby -c #{ruby_file}" unless ruby_file =~ /spec\/fixtures/
# end
# Dir['templates/**/*.erb'].each do |template|
# sh "erb -P -x -T '-' #{template} | ruby -c"
# end
:lint,
:spec,
]
# If run on own CI server
#task_dir = File.expand_path("../tasks", __FILE__)
#
#FileList["#{task_dir}/**/*.rake"].each { |fn| load fn }
#
#desc "Default task prints the available targets."
#task :default do
# sh %{rake -T}
#end