Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 610 Bytes
desc 'Build'
task :build do
puts "\n=== Building ==="
system('cd cocoa && clang -o test/TestLichCocoa -Wno-unused-value -framework Foundation -I. -Ideps *.m deps/JRErr.m test/TestLichCocoa.m')
puts '!!! FAILED !!!' if $?.exitstatus != 0
end
desc 'Test'
task :test => [:build] do
puts "\n=== Testing ==="
system('cocoa/test/TestLichCocoa lich-tests.json')
puts '!!! FAILED !!!' if $?.exitstatus != 0
system('rm cocoa/test/TestLichCocoa')
end
desc 'Clean up'
task :clean do
puts "\n=== Cleaning ==="
system('rm cocoa/test/TestLichCocoa')
end
task :default => [:clean, :test, :clean]
Something went wrong with that request. Please try again.