Commit 5ae4c168 authored by Samuel Giddins's avatar Samuel Giddins

Merge pull request #5486 from benasher44/basher_rake_submodule_check

Added rake task to check submodules
parents 9969b1db 31e2e4b9
......@@ -30,6 +30,14 @@ begin
title 'Building the gem'
end
task :check_submodules do
title 'Ensuring submodules are initialized'
submodule_help_msg = 'Run git submodule update --init --recursive to ensure submodules are initialized'
raise submodule_help_msg if `git submodule status`.split("\n").any? do |line|
line.start_with? '-'
end
end
require 'bundler/gem_tasks'
require 'bundler/setup'
......@@ -287,7 +295,7 @@ begin
#-----------------------------------------------------------------------------#
desc 'Run all specs'
task :spec => 'spec:all'
task :spec => [:check_submodules, 'spec:all']
task :default => :spec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment