Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (38 sloc) 0.906 kb
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"
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
Jump to Line
Something went wrong with that request. Please try again.