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...
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" />
...
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 ...
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...
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...
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.
...
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 ...
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 "...
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...
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...
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
...
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...
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?
...
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
...
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...
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...
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?
...
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...
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...
Hi,
pear.phing.info seems to be down, does anyone know if there are any mirrors available for this package?
Thanks,
Jon
...