phing

what can Phing do that Ant can't?

拥有回忆 提交于 2019-12-04 23:51:01
I'm doing PHP development and I'm thinking of using one of these. I have both PHP and Java installed on my machine. In theory I could use any of the two. What are the compelling arguments to pick Phing over Ant? The greatest argument I have in favor of Phing is that it's fully developed in PHP ; which means, at least : You can debug it / submit patches if you want You can develop tasks in PHP including tasks which are specific to your project that can use stuff from your project (I've written a couple of tasks that use functions of Drupal, in a drupal-based project) And, if you are working on

Preprocessing PHP to remove functionality from built files

微笑、不失礼 提交于 2019-12-04 06:33:17
I've been reading about Phing and Ant and I'm not sure which, if either, of these tools are most useful for this scenario. It could easily be debug statements etc, but I'll give you our literal scanario. We have a free and premium version of a downloadable PHP app, and rather than including just a variable hidden somewhere and then doing: if($premium == true) { echo 'some additional functionality'; } else { echo 'basic functionality'; } Obviously someone could then take the source and change that variable, and bang - they've stolen our code. And something like Ioncube etc is just totally

Separate Building from Deployment with Hudson

筅森魡賤 提交于 2019-12-03 13:27:01
问题 We have started using Hudson, and the current workflow is: checkout locally > code > run tests > update > run tests > commit Rather that polling, Hudson simply sits there until we instantiate a build. It then: checkout locally > run Phing script The Phing script then: svn export latest revision > run tests (if successful) > generates reports etc.. > compresses export > scp to production server > .. do magic to make site live... That all works fine and dandy, however it doesn't really give us

find replace text in file with Phing

我的未来我决定 提交于 2019-12-03 08:55:58
问题 Does anyone know how to find and replace text inside a file with Phing? 回答1: The simplest way to achieve this using 'traditional' tools would be sed : sed -i 's/old/new/g' myfile.txt And if it is ant-based then this should help: http://ant.apache.org/manual/Tasks/replace.html The simplest form would be <replace file="myfile.html" token="OLD" value="NEW"/> . And if you really need it, you could run external tools with ant as explained at http://ant.apache.org/manual/Tasks/exec.html, which

How do you manage your build [using Phing] process?

﹥>﹥吖頭↗ 提交于 2019-12-03 08:51:47
问题 I'm trying to use Phing to automate : running tests running DB migrations on each Developer machine [using dbdeply] deployment to production when needed I think it does make sense to add a build folder in my project and put all my build configuration files and db deltas in that folder. and commit all that into the SVN repository. so every developer will get the updated build files when he check-out from svn. and be able to run the build to update his DB with the new changes. on the production

How do you manage your build [using Phing] process?

拜拜、爱过 提交于 2019-12-02 21:25:43
I'm trying to use Phing to automate : running tests running DB migrations on each Developer machine [using dbdeply] deployment to production when needed I think it does make sense to add a build folder in my project and put all my build configuration files and db deltas in that folder. and commit all that into the SVN repository. so every developer will get the updated build files when he check-out from svn. and be able to run the build to update his DB with the new changes. on the production server: I was planning to add another build file there to get the latest Tagged version in svn and

PHP build/integration tools: Do you use them? [closed]

南楼画角 提交于 2019-12-02 19:10:20
After reading the "Modern PHP workflow" article in the November 2008 edition of php|architect magazine which discussed unit testing ( phpUnit ), build tools ( Phing ) and continuous integration ( Xinc ), I'm inspired the learn more about some of the tooling available for PHP, especially Phing. In the past I've often handled deployment to a production server by running the live site as a subversion working copy and simply running an "svn update" on the production box to deploy the latest version of the code. Do you use build tools for PHP code? What advantages you you believe they offer over

Unable to globally install older version of phpunit phar

不想你离开。 提交于 2019-12-02 02:59:35
As given in https://phpunit.de/manual/current/en/installation.html#installation.phar.verification , the steps to globally install the PHAR are: $ wget https://phar.phpunit.de/phpunit.phar $ chmod +x phpunit.phar $ sudo mv phpunit.phar /usr/local/bin/phpunit $ phpunit --version PHPUnit x.y.z by Sebastian Bergmann and contributors. I followed the above, but with the URL for the older version, i.e. https://phar.phpunit.de/phpunit-old.phar (because our PHP version is older). I ran the following commands then - $ chmod +x phpunit-old.phar $ sudo mv phpunit-old.phar /usr/local/bin/phpunit Note - My

How to continue a Jenkins build even though a build step failed?

☆樱花仙子☆ 提交于 2019-12-02 00:48:40
问题 I am using a Phing build script with Jenkins and would like to run it end to end on a job and capture all the reports. The problem is it stop building on a failed build step. Is there a way or a plugin that would continue the job even on failures? Thanks 回答1: I don't know a lot about Phing but, since it's based on Ant, if the build step you are executing has a "failonerror" attribute you should be able to set it to false so that the entire build doesn't fail if the step returns an error. 回答2:

Phing can't see PHPUnit

假如想象 提交于 2019-12-01 23:36:17
I'm trying to setup a new Continuous Integration server that utilizes Phing and PHPUnit for automatically running test cases. I've installed Phing with Pear: pear channel-discover pear.phing.info pear install phing/phing I've installed PHPUnit using the new PHAR method: wget https://phar.phpunit.de/phpunit.phar chmod +x phpunit.phar mv phpunit.phar /usr/local/bin/phpunit Then I go to the directory where my build.xml file is located, rung phing and it looks like Phing has no idea where PHPUnit is. [jenkins@leroy workspace]$ phing Buildfile: /home/jenkins/.jenkins/jobs/Framework/workspace/build