Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (39 sloc) 961 Bytes
desc "compile php-sundown"
task :compile => ['sundown/src/markdown.h'] do
sh "phpize"
sh "./configure"
sh "make"
end
desc "install php-sundown to your php"
task :install => [:compile] do
sh "make install"
end
task :clean do
sh "phpize --clean"
end
desc "run php test cases"
task :test do
ENV["TESTS"] = "--show-diff -q"
sh "make test"
sh "cat tests/*.diff; if [ $? -eq 0 ];then exit 1; fi"
end
desc "Run conformance tests"
task "test:conformance" do
Dir.chdir("conformance_test") do
script = "#{pwd}/Markdown.sh"
Dir.chdir("MarkdownTest_1.0.3") do
sh "./MarkdownTest.pl --script='#{script}' --tidy"
end
end
end
desc 'Gather required Sundown sources into extension directory'
task :gather do
abort "gather task become deprecated. now you don't need call this task."
end
file 'sundown/src/markdown.h' do |t|
abort "The Sundown submodule is required."
end
task :submodule do
sh "git submodule init"
sh "git submodule update"
end
Something went wrong with that request. Please try again.