Rakefile 771 Bytes
Newer Older
Raphaël Pinson's avatar
Raphaël Pinson committed
1
require 'puppetlabs_spec_helper/rake_tasks'
2
require 'puppet-lint/tasks/puppet-lint'
Raphaël Pinson's avatar
Raphaël Pinson committed
3

Mickaël Canévet's avatar
Mickaël Canévet committed
4
Rake::Task[:lint].clear
5
6
7
8
9
PuppetLint::RakeTask.new :lint do |config|
  config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
  config.disable_checks = ['80chars']
  config.fail_on_warnings = true
end
10
11

PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]
Raphaël Pinson's avatar
Raphaël Pinson committed
12
13

# Publishing tasks
Mickaël Canévet's avatar
Mickaël Canévet committed
14
unless RUBY_VERSION =~ /^1\./
Raphaël Pinson's avatar
Raphaël Pinson committed
15
16
  require 'puppet_blacksmith'
  require 'puppet_blacksmith/rake_tasks'
Mickaël Canévet's avatar
Mickaël Canévet committed
17
18
19
20
21
22
  #require 'github_changelog_generator/task'
  #GitHubChangelogGenerator::RakeTask.new :changelog do |config|
  #  m = Blacksmith::Modulefile.new
  #  config.future_release = m.version
  #  config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s"
  #end
Raphaël Pinson's avatar
Raphaël Pinson committed
23
end