Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.25.2
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (52 sloc) 1.298 kb
# Rakefile for Puppet -*- ruby -*-
$: << File.expand_path('lib')
$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
require './lib/puppet.rb'
require 'rake'
require 'rake/packagetask'
require 'rake/gempackagetask'
Dir['tasks/**/*.rake'].each { |t| load t }
FILES = FileList[
'[A-Z]*',
'install.rb',
'bin/**/*',
'sbin/**/*',
'lib/**/*',
'conf/**/*',
'man/**/*',
'examples/**/*',
'ext/**/*',
'test/**/*',
'spec/**/*'
]
Rake::PackageTask.new("puppet", Puppet::PUPPETVERSION) do |pkg|
pkg.package_dir = 'pkg'
pkg.need_tar_gz = true
pkg.package_files = FILES.to_a
end
task :default do
sh %{rake -T}
end
task :puppetpackages => [:create_gem, :package]
desc "Run the specs under spec/"
task :spec do
require 'spec'
require 'spec/rake/spectask'
begin
# require 'rcov'
rescue LoadError
end
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--format','s', '--loadby','mtime']
t.spec_files = FileList['spec/**/*.rb']
t.fail_on_error = false
if defined?(Rcov)
t.rcov = true
t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*']
end
end
end
desc "Run the unit tests"
task :unit do
sh "cd test; rake"
end
Jump to Line
Something went wrong with that request. Please try again.