inspec/Rakefile

27 lines
485 B
Ruby
Raw Normal View History

2016-12-15 08:53:01 +00:00
#!/usr/bin/env rake
# encoding: utf-8
require 'rake/testtask'
require 'rubocop/rake_task'
# Rubocop
desc 'Run Rubocop lint checks'
task :rubocop do
RuboCop::RakeTask.new
end
# lint the project
desc 'Run robocop linter'
task lint: [:rubocop]
# run tests
2017-01-16 13:36:52 +00:00
task default: [:lint]
2016-12-15 08:53:01 +00:00
namespace :test do
# run inspec check to verify that the profile is properly configured
task :check do
dir = File.join(File.dirname(__FILE__))
sh("bundle exec inspec check #{dir}")
end
end