blob: 5c951fc709654ce32e25997a2fdbef70c2e1abd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'rake/clean'
require 'rake/contrib/sys'
SRC = FileList['lib/**/*']
CLEAN.include('doc')
desc 'Create documentation'
file 'doc' => SRC do
sh "phpdoc --sourcecode on -t `pwd`/doc -d `pwd`/lib -ti 'trails documentation' -o 'HTML:frames:earthli'"
end
desc 'Run all unit tests'
task 'test' do
sh "php test/all_tests.php"
end
desc 'Run coverage'
task 'coverage' do
Sys.indir "test" do
sh "php coverage.php"
end
end
|