forked from nordineb/inspec-k8s
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
executable file
·44 lines (37 loc) · 956 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# frozen_string_literal: true
require 'rake/testtask'
require 'rubocop/rake_task'
desc 'default checks'
task default: [:lint]
desc 'Testing tasks'
task test: %w[test:unit]
# Rubocop
desc 'Run Rubocop lint checks'
task :rubocop do
RuboCop::RakeTask.new
end
# lint the project
desc 'Run robocop linter'
task lint: [:rubocop]
# Automatically generate a changelog for this project. Only loaded if
# the necessary gem is installed.
# use `rake changelog to=1.2.0`
begin
v = ENV['to']
require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.future_release = v
end
rescue LoadError
puts '>>>>> GitHub Changelog Generator not loaded, omitting tasks'
end
namespace :test do
# Minitest
Rake::TestTask.new(:unit) do |t|
t.libs << 'test/unit'
t.libs << 'libraries'
t.verbose = true
t.warning = false
t.test_files = Rake::FileList['test/unit/**/*_test.rb']
end
end