mirror of
https://github.com/voxpupuli/puppet-hashi_stack.git
synced 2025-05-23 18:35:01 +01:00
44 lines
1.1 KiB
Ruby
44 lines
1.1 KiB
Ruby
# Managed by modulesync - DO NOT EDIT
|
|
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
|
|
|
|
# Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper),
|
|
# otherwise attempt to load it directly.
|
|
begin
|
|
require 'voxpupuli/test/rake'
|
|
rescue LoadError
|
|
begin
|
|
require 'puppetlabs_spec_helper/rake_tasks'
|
|
rescue LoadError
|
|
end
|
|
end
|
|
|
|
# load optional tasks for acceptance
|
|
# only available if gem group releases is installed
|
|
begin
|
|
require 'voxpupuli/acceptance/rake'
|
|
rescue LoadError
|
|
end
|
|
|
|
# load optional tasks for releases
|
|
# only available if gem group releases is installed
|
|
begin
|
|
require 'voxpupuli/release/rake_tasks'
|
|
rescue LoadError
|
|
# voxpupuli-release not present
|
|
else
|
|
GCGConfig.user = 'voxpupuli'
|
|
GCGConfig.project = 'puppet-hashi_stack'
|
|
end
|
|
|
|
desc "Run main 'test' task and report merged results to coveralls"
|
|
task test_with_coveralls: [:test] do
|
|
if Dir.exist?(File.expand_path('../lib', __FILE__))
|
|
require 'coveralls/rake/task'
|
|
Coveralls::RakeTask.new
|
|
Rake::Task['coveralls:push'].invoke
|
|
else
|
|
puts 'Skipping reporting to coveralls. Module has no lib dir'
|
|
end
|
|
end
|
|
|
|
# vim: syntax=ruby
|