Skip to content

Commit

Permalink
Merge branch '1.0.x' into FM-1194
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Fields committed May 1, 2014
2 parents 738eea4 + d3b8d24 commit c4da498
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'

#desc 'Run RSpec'
#RSpec::Core::RakeTask.new(:test) do |t|
#t.pattern = 'spec/{unit}/**/*.rb'
# t.rspec_opts = ['--color']
#end
task :default => [:test]

desc 'Run RSpec'
RSpec::Core::RakeTask.new(:test) do |t|
t.pattern = 'spec/{unit}/**/*.rb'
#t.rspec_opts = ['--color']
end

desc 'Generate code coverage'
RSpec::Core::RakeTask.new(:coverage) do |t|
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end

desc "Run rake tasks"
task "beaker:test:pe" do |t, args|

cmd_str = "beaker --options-file .beaker-pe.cfg "
args.extras.each do |v|
cmd_str += "#{v} "
end

Dir.chdir("./acceptance")
system(cmd_str)
Dir.chdir("../")
end

PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp","tests/**/*.pp"]

0 comments on commit c4da498

Please sign in to comment.