1
# Rakefile for Puppet -*- ruby -*-
3
$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
6
require 'rake/packagetask'
7
require 'rake/gempackagetask'
9
require 'spec/rake/spectask'
12
PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
15
Dir['tasks/**/*.rake'].each { |t| load t }
32
Rake::PackageTask.new("puppet", Puppet::PUPPETVERSION) do |pkg|
33
pkg.package_dir = 'pkg'
34
pkg.need_tar_gz = true
35
pkg.package_files = FILES.to_a
42
desc "Create the tarball and the gem - use when releasing"
43
task :puppetpackages => [:create_gem, :package]
45
Spec::Rake::SpecTask.new do |t|
46
t.spec_opts = ['--format','s', '--loadby','mtime','--color']
47
t.pattern ='spec/{unit,integration}/**/*.rb'
48
t.fail_on_error = false
51
desc "Run the unit tests"