forked from olbrich/cuke4php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrakefile.rb
More file actions
45 lines (33 loc) · 815 Bytes
/
rakefile.rb
File metadata and controls
45 lines (33 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require 'rubygems'
require 'rake'
require "yard"
require "city"
task :default => :features
namespace :tests do
desc "run cucumber features"
task :features do
sh "cucumber features"
end
desc "run phpunit tests"
task :phpunit do
sh "phpunit tests/"
end
task :all => [:phpunit, :features]
end
namespace :server do
desc "start cuke4php server"
task :start do
end
desc "stop cuke4php server"
task :stop do
sh "echo 'quit' | nc #{ENV['SERVER'] || 'localhost'} #{ENV['PORT'] || 16816}"
end
end
namespace :doc do
task :default => [:phpdoc]
desc "Generate PhpDocs -- requires PhpDocumentor"
task :phpdoc do
sh "rm -rf phpdoc/"
sh "phpdoc -f *.php -d ./lib -t phpdoc/ --title Cuke4Php -dn Cuke4Php -dc Cuke4Php -it @one,@two,@wire"
end
end