mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
lint Rakefile
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
867242eb25
commit
b3896a77a2
1 changed files with 2 additions and 2 deletions
4
Rakefile
4
Rakefile
|
@ -15,7 +15,7 @@ desc 'Run robocop linter'
|
||||||
task lint: [:rubocop]
|
task lint: [:rubocop]
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
task :default => :test
|
task default: :test
|
||||||
Rake::TestTask.new do |t|
|
Rake::TestTask.new do |t|
|
||||||
t.libs << 'test'
|
t.libs << 'test'
|
||||||
t.pattern = 'test/**/*_test.rb'
|
t.pattern = 'test/**/*_test.rb'
|
||||||
|
@ -28,7 +28,7 @@ namespace :test do
|
||||||
task :isolated do
|
task :isolated do
|
||||||
Dir.glob('test/**/*_test.rb').all? do |file|
|
Dir.glob('test/**/*_test.rb').all? do |file|
|
||||||
sh(Gem.ruby, '-w', '-Ilib:test', file)
|
sh(Gem.ruby, '-w', '-Ilib:test', file)
|
||||||
end or raise 'Failures'
|
end or fail 'Failures'
|
||||||
end
|
end
|
||||||
|
|
||||||
task :resources do
|
task :resources do
|
||||||
|
|
Loading…
Reference in a new issue