Skip to content
Newer
Older
100644 59 lines (48 sloc) 2.07 KB
51e5464 Version bump to 0.0.0
aledalgrande authored Jan 22, 2011
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "cuke4php"
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
8 gem.summary = %Q{Implementation of the Cucumber wire protocol for PHP projects}
9 gem.description = %Q{Using this protocol it is possible to directly interact with PHP code at any level without the need for a web server. To accomplish this, when cucumber is running against a directory containing feature files and it cannot resolve a particular step definition, it will ask a known wire server (as defined in a .wire file) to interpret and run those steps.}
10 gem.authors = ["Kevin Olbrich", "Alessandro Dal Grande"]
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 26, 2011
11 gem.email = ["kevin.olbrich+cuke4php@gmail.com", "aledalgrande@gmail.com"]
12 gem.homepage = "http://github.com/olbrich/cuke4php"
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
13 gem.files.exclude 'phpdoc'
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
14 gem.has_rdoc = false
15 gem.requirements << "PHP 5.2+"
16 gem.requirements << "PHPUnit 3.0+"
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
17 gem.post_install_message =<<eos
18 ********************************************************************************
19
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
20 Please install PHPUnit >= 3.0 if you've not already done it!
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
21
22 Add PEAR channels:
23 pear channel-discover pear.phpunit.de
24 pear channel-discover components.ez.no
25 pear channel-discover pear.symfony-project.com
26
27 Install PHPUnit:
28 pear install phpunit/PHPUnit
29
7b05909 update rake file for package generation
Kevin Olbrich authored Aug 30, 2011
30 Optional: Use PEAR/Net_Server for a remote forking server implementation
31 (requires PHP with pcntl extensions)
32
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
33 ********************************************************************************
34 eos
51e5464 Version bump to 0.0.0
aledalgrande authored Jan 22, 2011
35 end
36 Jeweler::GemcutterTasks.new
37 rescue LoadError
38 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
39 end
40
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
41 require 'cucumber/rake/task'
51e5464 Version bump to 0.0.0
aledalgrande authored Jan 22, 2011
42
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
43 task :default => [:features, :phpunit]
14316e6 @aledalgrande gem structure and some notice fixes
aledalgrande authored Jan 22, 2011
44
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
45 desc "Run Cucumber features for Cuke4php"
46 task :features do
f4f9bd5 oops, missed a reference to cucumber_php in the rakefile
Kevin Olbrich authored Jan 26, 2011
47 sh "bin/cuke4php -p #{ENV['PROFILE'] || 'default'} features"
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
48 end
51e5464 Version bump to 0.0.0
aledalgrande authored Jan 22, 2011
49
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
50 desc "Generate PhpDocs -- requires PhpDocumentor"
51 task :phpdoc do
52 sh "rm -rf phpdoc/"
53 sh "phpdoc -f *.php -d ./lib -t phpdoc/ --title Cuke4Php -dn Cuke4Php -dc Cuke4Php -it @one,@two,@wire"
51e5464 Version bump to 0.0.0
aledalgrande authored Jan 22, 2011
54 end
7c008d9 update rakefile. Mostly changes to gemspec. Add dependencies.
Kevin Olbrich authored Jan 27, 2011
55
56 desc "Run PHPUnit tests"
57 task :phpunit do
58 sh "phpunit tests"
59 end
Something went wrong with that request. Please try again.