forked from voxpupuli/puppet-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (35 loc) · 994 Bytes
/
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 'puppetlabs_spec_helper/rake_tasks'
require 'rspec/core/rake_task'
exclude_paths = [
'pkg/**/*',
'vendor/**/*',
'spec/**/*'
]
PuppetLint::RakeTask.new :lint do |config|
config.disable_checks = ['80chars']
config.fail_on_warnings = true
config.with_context = true
config.ignore_paths = exclude_paths
config.log_format = '%{filename}:%{line} - %{message}'
end
RSpec::Core::RakeTask.new(:spec_verbose) do |t|
t.pattern = 'spec/{classes,defines,lib,reports}/**/*_spec.rb'
t.rspec_opts = [
'--format documentation',
'--require "ci/reporter/rspec"',
'--format CI::Reporter::RSpecFormatter',
'--color'
]
end
# RSpec::Core::RakeTask.new(:henry) do |t|
# t.pattern = 'spec/acceptance/**/*_spec.rb'
# t.rspec_opts = '--format progress --color'
# end
# RSpec::Core::RakeTask.new(:beaker_verbose) do |t|
# t.pattern = 'spec/acceptance/**/*_spec.rb'
# t.rspec_opts = [
# '--format documentation',
# '--color'
# ]
# end