Commit 907fdd1b authored by Luke Redpath's avatar Luke Redpath

Need to build the xcodeproj native extension before running unit specs.

parent c821caaf
...@@ -82,9 +82,28 @@ namespace :gem do ...@@ -82,9 +82,28 @@ namespace :gem do
end end
end end
namespace :ext do
EXT_DIR = "./external/Xcodeproj/ext/xcodeproj"
task :clean do
Dir.chdir(EXT_DIR) do
sh "rm -f Makefile *.o *.bundle"
end
end
task :build do
Dir.chdir(EXT_DIR) do
ruby "extconf.rb"
sh "make"
end
end
task :cleanbuild => [:clean, :build]
end
namespace :spec do namespace :spec do
desc "Run the unit specs" desc "Run the unit specs"
task :unit do task :unit => "ext:cleanbuild" do
sh "bacon spec/unit/**/*_spec.rb" sh "bacon spec/unit/**/*_spec.rb"
end end
......
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