~ubuntu-branches/ubuntu/maverick/puppet/maverick-updates

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.6.1~rc4-0ubuntu1/Rakefile

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Mathias Gug, Stig Sandbeck Mathisen
  • Date: 2010-09-07 10:44:22 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907104422-lmhcy8xdjcuem645
Tags: 2.6.1~rc4-0ubuntu1
[ Mathias Gug ]
* New upstream version:
  - Fix "Puppet standalone broken" (Closes: #594575)
* test/lib/puppettest/fakes.rb: Fix puppettest to use puppet system 
  library.

[ Stig Sandbeck Mathisen ]
* Fix "require" path for puppet queue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Rakefile for Puppet -*- ruby -*-
 
2
 
 
3
$LOAD_PATH << File.join(File.dirname(__FILE__), 'tasks')
 
4
 
 
5
require 'rake'
 
6
require 'rake/packagetask'
 
7
require 'rake/gempackagetask'
 
8
require 'spec'
 
9
require 'spec/rake/spectask'
 
10
 
 
11
module Puppet
 
12
    PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
 
13
end
 
14
 
 
15
Dir['tasks/**/*.rake'].each { |t| load t }
 
16
 
 
17
FILES = FileList[
 
18
    '[A-Z]*',
 
19
    'install.rb',
 
20
    'bin/**/*',
 
21
    'sbin/**/*',
 
22
    'lib/**/*',
 
23
    'conf/**/*',
 
24
    'man/**/*',
 
25
    'examples/**/*',
 
26
    'ext/**/*',
 
27
    'tasks/**/*',
 
28
    'test/**/*',
 
29
    'spec/**/*'
 
30
]
 
31
 
 
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
 
36
end
 
37
 
 
38
task :default do
 
39
    sh %{rake -T}
 
40
end
 
41
 
 
42
desc "Create the tarball and the gem - use when releasing"
 
43
task :puppetpackages => [:create_gem, :package]
 
44
 
 
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
 
49
end
 
50
 
 
51
desc "Run the unit tests"
 
52
task :unit do
 
53
    sh "cd test; rake"
 
54
end