Rakefile in googleapis-common-protos-1.3.10 vs Rakefile in googleapis-common-protos-1.3.11
- old
+ new
@@ -34,18 +34,28 @@
puts full_command
system full_command
end
+desc "Test loading all proto files"
+task :test_loading do
+ puts "\nLoading proto files"
+ Dir.glob("lib/google/**/*_pb.rb") do |path|
+ puts path
+ require_relative path
+ end
+end
+
desc "Remove the compiled protos."
task :clean_protos do
FileUtils.rm_rf "lib"
end
desc "Run the CI build"
task :ci do
puts "\nCompiling Protos\n"
Rake::Task[:compile_protos].invoke
+ Rake::Task[:test_loading].invoke
end
Rake::Task[:build].enhance [:compile_protos]
Rake::Task[:clean].enhance [:clean_protos]
\ No newline at end of file