phing

Phing: MySQL import

I'm trying to setup an mysql import script in Phing, but the "<" is causing XML errors. Any ideas? <exec command="mysql -u${mysql.username} -p${mysql.password} -h ${mysql.server} ${mysql.database} < ${sql.file}" /> I'm looking at making dbDeploy doing this, but it'd be great if there was an easy way for this to work (single line comm...

Cannot execute zip task in Phing on XP

Hi - I'm using Phing to create build files, but I've noticed that it does not appear to be able to execute the zip task: <target name="makeroot"> <echo msg="Making directory Template" /> <mkdir dir="./../Template" /> </target> <target name="makefolders" depends="makeroot"> <echo msg="Making folders within Template" /> ...

Running unit tests on both windows and linux

Is there a way, a method, to be able to effectively run unit tests (phpunit) on both linux and windows? I need to do this because some parts of the system is only available under linux, but i do want to be able to run certain parts of the test suite in my IDE, which is netbeans by the way. The problems i run into have to do with paths ...

Phingcall: called target doesn't set properties

In the following phing xml, inside the "skel" target I check if the app is configured, if it's not then I call the configure target and then apply the config to several files. The problem is that property db.host is not set after the phingcall, even though it is set after the propertyprompt. What am I missing? <!-- base co...

Phing, call a command get its output into a property

I have a script that can lookup and output or write my current release # to a text file. Now the only problem is how do I get this version number into a PHING property. Right now my PHING target builds build.zip and built.tar, I would like it to build build-1.0.0.zip or whatever the version script decides the current version is. How can...

Clover coverage with Phing

Is there a way to get Phing to output it's coverage report in clover format? I know phpunit has --coverage-clover but I don't know how to enable this option from Phing. I do not want to manually use the <exec command - it defeats the point of Phing. I am using Phing 2.4RC2 Thanks. ...

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

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 ...

Making reference to a fileset to another Phing build script

Here is my scenario: I have a generic phing build script to make an archived build of my application. But for some of my clients, I want to encode some php files and exclude files from the default build. My initial solution was to create a "configuration" build file for each of my clients and add two filesets like "before-encode" and "...

Why won't PHP create this zip file (permissions issue)

I am on windows I am using PHING to zip up some files I have lots of things being zipped Zipping works, except for ones that include a particular phing fileset in the files being zipped When I debug, I can see in phing's ZIP Task that ZipArchive::close is returning false. The error string reads "permission denied". In the manual it stat...

Setting up a deployment / build / CI cycle for PHP projects

I am a lone developer most of my time, working on a number of big, mainly PHP-based projects. I want to professionalize and automate how changes to the code base are handled, and create a Continuous Integration process that makes the transition to work in a team possible without having to make fundamental changes. What I am doing right...

Do I use phing locale or remote?

I have a question related to phing. Do I use it on my local development machine to deploy an application or do I call it via ssh from production machine? I'm not sure where to do the steps from Eran Galperin (What is your preferred PHP deployment strategy). I'm a beginner with deployment scripts. So be forgiving :) Marco ...

phing versus phpunit codecoverage results

I have created a build.xml file for phing to create code coverage reports. It uses phpunit codecoverage="true" and is pointed to the same file(s) as done with phpunit --coverage-html. The result differ, however. With phing I have 100% code coverage for all files, which I have not. There is probably something I don't know about running...

What does ** mean in Phing?

The Phing User's Guide uses the following description of the ** file filter: "Two asterisks (**) may include above the "border" of the directory separator." I'm having a hard time deciphering what this really means. Can somebody please translate this into English? ...

Phing not working on OSX / MAMP

Here is what I have tried thus far: > cd /Applications/MAMP/bin/php5/bin/ > ./pear channel-discover pear.phing.info > ./pear install phing/phing Installation ran. I can run the following: > ./pear/ info phing/phing About pear.phing.info/phing-2.4.0 ================================= Release Type PEAR-style PHP-based Package ...

Getting Phing's dbdeploy task to automatically rollback on delta error

I am using Phing's dbdeploy task to manage my database schema. This is working fine, as long as there is no errors in the queries of my delta files. However, if there is an error, dbdeploy will just run the delta files up to the query with the error and then abort. This causes me some frustration, because I have to manually rollback the...

Can I redistribute Phing with non-free software?

I am having trouble understanding the terms of the LGPL in light of a program that is not written in C or C++. They speak of libraries being linked and 'derivitive' works. If I were to package a php program and sell it, but within the program the deployment mechanism used the phing package (full up with the entire contents as is and un...

what can Phing do that Ant can't?

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? ...

phing nested if conditions

Hello - I am having trouble understanding the Phing documentation regarding multiple conditions for a given <if> tag. It implies you cannot have multiple conditions unless you use the <and> tag, but there are no examples of how to use it. Consequently I nested two <if> tags, however I feel silly doing this when I know there is a better...

How to Sync CI (Hudson) Activity into an existing automated Build Process (phing, svn)?

OUR CURRENT BUILD PROCESS We're a small team of developers (2 to 4 people depending on project) who currently use Phing to deploy code to a staging environment, before going live. We keep our code in a SVN repo, where the trunk holds current active development and, at certain times, we do make branches that we test and then (if successf...

Mirror for pear.phing.info

Hi, pear.phing.info seems to be down, does anyone know if there are any mirrors available for this package? Thanks, Jon ...