~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.6.8-1/Rakefile

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-07-25 01:00:37 UTC
  • mfrom: (1.1.24 upstream) (3.1.25 sid)
  • Revision ID: james.westby@ubuntu.com-20110725010037-875vuxs10eboqgw3
Tags: 2.7.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/puppetmaster-passenger.postinst: Use cacrl instead of hostcrl to
    set the location of the CRL in apache2 configuration. Fix apache2
    configuration on upgrade as well (LP: #641001)
  - move all puppet dependencies to puppet-common since all the code
    actually located in puppet-common.
  - move libagueas from a recommend to a dependency.

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 'rspec'
9
 
require "rspec/core/rake_task"
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
 
RSpec::Core::RakeTask.new do |t|
46
 
    t.pattern ='spec/{unit,integration}/**/*.rb'
47
 
    t.fail_on_error = true
48
 
end
49
 
 
50
 
desc "Run the unit tests"
51
 
task :unit do
52
 
    sh "cd test; rake"
53
 
end