Debian Codegraph @

Rakefile

raw
1 # Managed by modulesync - DO NOT EDIT
2 # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3
4 # Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper),
5 # otherwise attempt to load it directly.
6 begin
7 require 'voxpupuli/test/rake'
8 rescue LoadError
9 begin
10 require 'puppetlabs_spec_helper/rake_tasks'
11 rescue LoadError
12 end
13 end
14
15 # load optional tasks for acceptance
16 # only available if gem group releases is installed
17 begin
18 require 'voxpupuli/acceptance/rake'
19 rescue LoadError
20 end
21
22 # load optional tasks for releases
23 # only available if gem group releases is installed
24 begin
25 require 'voxpupuli/release/rake_tasks'
26 rescue LoadError
27 # voxpupuli-release not present
28 else
29 GCGConfig.user = 'voxpupuli'
30 GCGConfig.project = 'puppet-redis'
31 end
32
33 desc "Run main 'test' task and report merged results to coveralls"
34 task test_with_coveralls: [:test] do
35 if Dir.exist?(File.expand_path('../lib', __FILE__))
36 require 'coveralls/rake/task'
37 Coveralls::RakeTask.new
38 Rake::Task['coveralls:push'].invoke
39 else
40 puts 'Skipping reporting to coveralls. Module has no lib dir'
41 end
42 end
43
44 # vim: syntax=ruby