Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (39 sloc) 0.961 kb
6af0556 Shuhei Tanuma for now, update rake file
authored
1 desc "compile php-sundown"
2 task :compile => ['sundown/src/markdown.h'] do
6b10deb Shuhei Tanuma adjust file structures as a standard PECL repo
authored
3 sh "phpize"
4 sh "./configure"
5 sh "make"
d0e3a44 Shuhei Tanuma improve build process
authored
6 end
7
6af0556 Shuhei Tanuma for now, update rake file
authored
8 desc "install php-sundown to your php"
d0e3a44 Shuhei Tanuma improve build process
authored
9 task :install => [:compile] do
6b10deb Shuhei Tanuma adjust file structures as a standard PECL repo
authored
10 sh "make install"
d0e3a44 Shuhei Tanuma improve build process
authored
11 end
12
13 task :clean do
6b10deb Shuhei Tanuma adjust file structures as a standard PECL repo
authored
14 sh "phpize --clean"
d0e3a44 Shuhei Tanuma improve build process
authored
15 end
16
4aa90a1 Shuhei Tanuma added some testcases
authored
17 desc "run php test cases"
18 task :test do
6b10deb Shuhei Tanuma adjust file structures as a standard PECL repo
authored
19 ENV["TESTS"] = "--show-diff -q"
20 sh "make test"
ebae34b Reeze Xia Make travis report test failure since make test didn't report exit code
reeze authored
21 sh "cat tests/*.diff; if [ $? -eq 0 ];then exit 1; fi"
4aa90a1 Shuhei Tanuma added some testcases
authored
22 end
23
d0e3a44 Shuhei Tanuma improve build process
authored
24 desc "Run conformance tests"
25 task "test:conformance" do
6b10deb Shuhei Tanuma adjust file structures as a standard PECL repo
authored
26 Dir.chdir("conformance_test") do
8a608a8 Shuhei Tanuma fixed segv when using Sundown\Markdown and adjust travis setting
authored
27 script = "#{pwd}/Markdown.sh"
d0e3a44 Shuhei Tanuma improve build process
authored
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'
b1e80f1 Shuhei Tanuma improve build script.
authored
35 task :gather do
36 abort "gather task become deprecated. now you don't need call this task."
d0e3a44 Shuhei Tanuma improve build process
authored
37 end
38
39 file 'sundown/src/markdown.h' do |t|
40 abort "The Sundown submodule is required."
41 end
42
6af0556 Shuhei Tanuma for now, update rake file
authored
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.