1) Install Java
- Download from http://java.sun.com/javase/downloads/index.jsp
- chmod 777 jdk-6u20-linux-x64.sh
- ./jdk-6u20-linux-x64.sh
- mv jdk1.6.0_20 /usr/local/lib/jdk1.6.0_20/bin/java
- sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/lib/jdk1.6.0_20/bin/java" 1
- sudo update-alternatives --set java /usr/local/lib/jdk1.6.0_20/bin/java
- Create sym link for Firefox Java Plugin:
- ln -s/usr/local/lib/jdk1.6.0_20/lib/amd64/libnpjp2.so ~/.mozilla/plugins
- Download from http://www.eclipse.org
- Extract to "eclipse" and move to new home
- Install SVN plugin and checkout project from sourceforge
- sudo apt-get install php5 php5-mysql php5-pgsql php5-sqlite php5-curl php5-xsl php5-mcrypt php5-dev php5-xdebug php-pear php-gettext
- sudo vim /etc/php5/cli/conf.d/mcrypt.ini (remove deprecated ini #comment)
- sudo apt-get install mysql-server mysql-client
- grant all privileges on *.* to php@localhost identified by 'php007';
- sudo apt-get install postgresql
- sudo -s
- su postgres
- createuser -P -s -e php (password php007)
- - createdb -O php php
- mysql -u root -p < /storage/Apps/eclipse-galileo/workspace/AgilePHP/test/agilephp_test.sql
- mysql -u root -p < /storage/Apps/eclipse-galileo/workspace/AgilePHP/studio/agilephp_studio.sql
- vim /etc/apache2/conf.d/agilephp
<VirtualHost *:80>
ServerName agilephp
DocumentRoot "/storage/Apps/eclipse-galileo/workspace/AgilePHP"
DirectoryIndex index.php
<Directory "/storage/Apps/eclipse-galileo/workspace/AgilePHP">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
- Create hosts entry that points "agilephp" to localhost
- sudo chmod -R 777 test/logs
- sudo pear channel-discover pear.phing.info
- sudo pear install --alldeps phing/phing
- sudo pear channel-discover pear.phpunit.de
- sudo pear install phpunit/PHPUnit
- sudo pear install PEAR_PackageFileManager channel://pear.php.net/XML_Serializer-0.20.0
- Download from http://www.javascriptlint.com/download.htm
- Extract archive
- cd jsl-0.3.0/src
- make -f Makefile.ref
- sudo ln -s /storage/Sources/jsl-0.3.0/src/Linux_All_DBG.OBJ/jsl /usr/bin/jsl
- apt-get install libyaml-0-2 libyaml-dev
- sudo pecl install yaml channel://pecl.php.net/yaml-0.6.3
- sudo vim /etc/php5/conf.d/yaml.ini
- # yaml.ini
extension=yaml.so
- sudo apt-get install sendmail
- sudo /etc/init.d/apache2 restart
- sudo locale-gen es_ES (Spanish)
- sudo locale-gen de_DE (German)
- sudo locale-gen fr_FR (French)
- sudo chown -R jhahn.www-data AgilePHP
- locate phpunit-frames.xsl (note directory)
- phpunit.styles.dir=(path to directory noted above)
phing/Phing.php
line 1016 $pieces = explode(DIRECTORY_SEPARATOR, $path);
line 1017 $class = preg_replace('/\.php/', '', array_pop($pieces));
line 1018 if(class_exists($class, false)) return;
21) Build the project
jhahn@xenia:/storage/Apps/eclipse-galileo/workspace/AgilePHP$ phing
Buildfile: /storage/Apps/eclipse-galileo/workspace/AgilePHP/build.xml
[property] Loading /storage/Apps/eclipse-galileo/workspace/AgilePHP/build.properties
AgilePHP Framework > delete-logs:
[delete] Deleting /storage/Apps/eclipse-galileo/workspace/AgilePHP/test/logs/agilephp_07-05-10.log
[delete] Deleting directory /storage/Apps/eclipse-galileo/workspace/AgilePHP/test/logs
[delete] Deleting directory /storage/Apps/eclipse-galileo/workspace/AgilePHP/studio/logs
[mkdir] Created dir: /storage/Apps/eclipse-galileo/workspace/AgilePHP/test/logs
[mkdir] Created dir: /storage/Apps/eclipse-galileo/workspace/AgilePHP/studio/logs
[chmod] Changed file mode on '/storage/Apps/eclipse-galileo/workspace/AgilePHP/test/logs' to 777
[chmod] Changed file mode on '/storage/Apps/eclipse-galileo/workspace/AgilePHP/studio/logs' to 777
AgilePHP Framework > clean:
[delete] Deleting directory /storage/Apps/eclipse-galileo/workspace/AgilePHP/build
AgilePHP Framework > test:
[mkdir] Created dir: /storage/Apps/eclipse-galileo/workspace/AgilePHP/build/reports/phpunit
[mkdir] Created dir: /storage/Apps/eclipse-galileo/workspace/AgilePHP/build/reports/phpunit/tests
[mkdir] Created dir: /storage/Apps/eclipse-galileo/workspace/AgilePHP/build/reports/phpunit/coverage
[coverage-setup] Setting up coverage database for 124 files
localhost[8404]: [6] localhost 07-05-10 2:22:05pm / info 2010-07-05T14:22:05-04:00
localhost[8404]: [4] localhost 07-05-10 2:22:05pm / warn 2010-07-05T14:22:05-04:00
localhost[8404]: [3] localhost 07-05-10 2:22:05pm / error 2010-07-05T14:22:05-04:00
localhost[8404]: [7] localhost 07-05-10 2:22:05pm / debug 2010-07-05T14:22:05-04:00
[phpunit] Tests run: 111, Failures: 0, Errors: 0, Incomplete: 0, Skipped: 0, Time elapsed: 103,57901 s
[coverage-report] Transforming coverage report
AgilePHP Framework > main:
// lots of ouput not included
BUILD FINISHED
Total time: 2 minutes 57,44 seconds
No comments:
Post a Comment