root / Rakefile @ 0b2ccdda
Historique | Voir | Annoter | Télécharger (1,12 ko)
1 | 5fea281f | Tim | # Managed by modulesync - DO NOT EDIT
|
---|---|---|---|
2 | # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
||
3 | |||
4 | 20eaf3c2 | Tim | # Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper),
|
5 | 78f22811 | Steve Traylen | # otherwise attempt to load it directly.
|
6 | begin
|
||
7 | require 'voxpupuli/test/rake'
|
||
8 | rescue LoadError |
||
9 | 5fea281f | Tim | 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 | 186a64ca | tr | end
|
21 | |||
22 | 78f22811 | Steve Traylen | # 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 | dcc15b02 | Massimiliano Adamo | # voxpupuli-release not present
|
28 | else
|
||
29 | GCGConfig.user = 'voxpupuli' |
||
30 | GCGConfig.project = 'puppet-nftables' |
||
31 | 78f22811 | Steve Traylen | end
|
32 | ece9be27 | tr | |
33 | 78f22811 | Steve Traylen | 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 | ece9be27 | tr | end
|
42 | 186a64ca | tr | end
|
43 | |||
44 | 78f22811 | Steve Traylen | # vim: syntax=ruby |