Skip to content

Commit

Permalink
update Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Lunzenauer committed Sep 30, 2009
1 parent b9dbe96 commit 4a9a88a
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions Rakefile
@@ -1,18 +1,34 @@
require 'rake/clean'
require 'rake/contrib/sys'

SRC = FileList['lib/*']
CLEAN.include('doc/*')
CLEAN.include('ndoc')

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

task 'shrink' do
sh "php lib/src/trails.php > lib/trails-unabridged.php"
desc 'Build release'
task 'build' => 'compile' do
sh "php tools/shrink.php lib/trails-unabridged.php > lib/trails.php"
sh "wc lib/trails.php"
end

desc 'Compile release'
task 'compile' do
sh "php lib/src/trails.php > lib/trails-unabridged.php"
end

desc 'Run coverage'
task 'coverage' do
Sys.indir "test" do
sh "php coverage.php"
end
end

0 comments on commit 4a9a88a

Please sign in to comment.