forked from rodjek/puppet-lint
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Rakefile
45 lines (40 loc) · 1.11 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'bundler/gem_tasks'
require 'rubocop/rake_task'
require 'github_changelog_generator/task'
require 'puppet-lint/version'
require 'rspec/core/rake_task'
require 'puppetlabs_spec_helper/tasks/fixtures'
begin
require 'github_changelog_generator/task'
rescue LoadError
# Gem not present
else
GitHubChangelogGenerator::RakeTask.new(:changelog) do |config|
version = PuppetLint::VERSION
config.user = 'puppetlabs'
config.project = 'puppet-lint'
config.since_tag = '2.5.0'
config.future_release = version.to_s
config.exclude_labels = %w[duplicate question invalid wontfix release-pr documentation]
config.enhancement_labels = %w[feature]
end
end
begin
require 'puppet_litmus/rake_tasks'
rescue LoadError
# Gem not present
end
namespace :spec do
desc 'Run RSpec code examples with coverage collection'
task :coverage do
ENV['COVERAGE'] = 'yes'
Rake::Task['spec'].execute
end
end
RSpec::Core::RakeTask.new(:spec) do |t|
t.exclude_pattern = 'spec/acceptance/**/*_spec.rb'
end
desc 'Run acceptance tests'
task :acceptance do
Rake::Task['litmus:acceptance:localhost'].invoke
end