Skip to content

Commit

Permalink
override build with submodules (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedetaglia authored Jul 22, 2021
1 parent 50c9d59 commit 0d9c597
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0d9c597

Please sign in to comment.