From 0d9c597f750bf6c9560148dc71b84f84e2751f04 Mon Sep 17 00:00:00 2001 From: Federico Tagliabue Date: Thu, 22 Jul 2021 16:42:49 +1000 Subject: [PATCH] override build with submodules (#4) --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index 4c774a2..15b099e 100644 --- a/Rakefile +++ b/Rakefile @@ -4,3 +4,10 @@ require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: :spec + +desc 'Override our build task to ensure methodologies git submodules are present' +task 'build' do + submodule_status = `git submodule init && git submodule update` + + raise 'git submodules were not up-to-date. Please rebuild!' unless submodule_status.empty? +end