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

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.6.1-0ubuntu2/Rakefile

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2010-10-21 12:52:13 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20101021125213-x5pjaatmuv0i79jv
Tags: 2.6.3~rc1-0ubuntu1
* New upstream version
* debian/control:
  - move all puppet dependencies to puppet-common since all the code is
    actually located in puppet-common. 
  - move libaugeas 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 '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