aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2020-02-11 19:32:27 +0100
committerTim Meusel <tim@bastelfreak.de>2020-02-11 19:32:27 +0100
commitf8faa812549dcdfd64ceacae647039acb5d8e7a3 (patch)
treec1e9eef133fc6be684f311f9a9695bbaddb04194 /Rakefile
parent76833ebc2f9313afb3f36d37b351933c06b112f2 (diff)
downloadpuppet-ferm-f8faa812549dcdfd64ceacae647039acb5d8e7a3.tar.gz
puppet-ferm-f8faa812549dcdfd64ceacae647039acb5d8e7a3.tar.bz2
modulesync 3.0.0
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile33
1 files changed, 1 insertions, 32 deletions
diff --git a/Rakefile b/Rakefile
index c0f2d37..b450fe7 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-require 'puppetlabs_spec_helper/rake_tasks'
+require 'voxpupuli/test/rake'
# load optional tasks for releases
# only available if gem group releases is installed
@@ -7,37 +7,6 @@ begin
rescue LoadError
end
-PuppetLint.configuration.log_format = '%{path}:%{line}:%{check}:%{KIND}:%{message}'
-
-desc 'Auto-correct puppet-lint offenses'
-task 'lint:auto_correct' do
- Rake::Task[:lint_fix].invoke
-end
-
-desc 'Run acceptance tests'
-RSpec::Core::RakeTask.new(:acceptance) do |t|
- t.pattern = 'spec/acceptance'
-end
-
-desc 'Run tests'
-task test: [:release_checks]
-
-namespace :check do
- desc 'Check for trailing whitespace'
- task :trailing_whitespace do
- Dir.glob('**/*.md', File::FNM_DOTMATCH).sort.each do |filename|
- next if filename =~ %r{^((modules|acceptance|\.?vendor|spec/fixtures|pkg)/|REFERENCE.md)}
- File.foreach(filename).each_with_index do |line, index|
- if line =~ %r{\s\n$}
- puts "#{filename} has trailing whitespace on line #{index + 1}"
- exit 1
- end
- end
- end
- end
-end
-Rake::Task[:release_checks].enhance ['check:trailing_whitespace']
-
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__))