Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (39 sloc) 0.961 kb
6af05566 »
2011-09-17 for now, update rake file
1 desc "compile php-sundown"
2 task :compile => ['sundown/src/markdown.h'] do
6b10debf »
2012-01-14 adjust file structures as a standard PECL repo
3 sh "phpize"
4 sh "./configure"
5 sh "make"
d0e3a44e »
2011-09-17 improve build process
6 end
7
6af05566 »
2011-09-17 for now, update rake file
8 desc "install php-sundown to your php"
d0e3a44e »
2011-09-17 improve build process
9 task :install => [:compile] do
6b10debf »
2012-01-14 adjust file structures as a standard PECL repo
10 sh "make install"
d0e3a44e »
2011-09-17 improve build process
11 end
12
13 task :clean do
6b10debf »
2012-01-14 adjust file structures as a standard PECL repo
14 sh "phpize --clean"
d0e3a44e »
2011-09-17 improve build process
15 end
16
4aa90a1e »
2012-01-09 added some testcases
17 desc "run php test cases"
18 task :test do
6b10debf »
2012-01-14 adjust file structures as a standard PECL repo
19 ENV["TESTS"] = "--show-diff -q"
20 sh "make test"
ebae34ba » reeze
2012-07-15 Make travis report test failure since make test didn't report exit code
21 sh "cat tests/*.diff; if [ $? -eq 0 ];then exit 1; fi"
4aa90a1e »
2012-01-09 added some testcases
22 end
23
d0e3a44e »
2011-09-17 improve build process
24 desc "Run conformance tests"
25 task "test:conformance" do
6b10debf »
2012-01-14 adjust file structures as a standard PECL repo
26 Dir.chdir("conformance_test") do
8a608a81 »
2012-01-06 fixed segv when using Sundown\Markdown and adjust travis setting
27 script = "#{pwd}/Markdown.sh"
d0e3a44e »
2011-09-17 improve build process
28 Dir.chdir("MarkdownTest_1.0.3") do
29 sh "./MarkdownTest.pl --script='#{script}' --tidy"
30 end
31 end
32 end
33
34 desc 'Gather required Sundown sources into extension directory'
b1e80f13 »
2012-05-14 improve build script.
35 task :gather do
36 abort "gather task become deprecated. now you don't need call this task."
d0e3a44e »
2011-09-17 improve build process
37 end
38
39 file 'sundown/src/markdown.h' do |t|
40 abort "The Sundown submodule is required."
41 end
42
6af05566 »
2011-09-17 for now, update rake file
43 task :submodule do
44 sh "git submodule init"
45 sh "git submodule update"
46 end
Something went wrong with that request. Please try again.