Ticket #417 (closed defect: invalid)
fatal errors in continuous integration environment lead to unknown result of the build
| Reported by: | yegor256@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.1 |
| Component: | phing-core | Version: | 2.3.3 |
| Keywords: | Cc: |
Description
We have CruiseControl and Phing. When there is a fatal error in our unit tests, phing crashes together with the code and do not return anything to CruiseControl. As a result, CC doesn't know the status of the build (neither success nor failure) and starts again. As a result we have an endless cycle.
I suggest to run tests (phpunit) in a separate process in order to avoid fatal crash of phing.
Attachments
Change History
comment:2 Changed 2 years ago by yegor256@…
build.xml: http://code.google.com/p/fazend/source/browse/trunk/FaZend/Application/Phing/build.xml
when crash happens in phpunit task (I mean Fatal Error) - the entire build is crashed, together with phing
comment:3 Changed 2 years ago by mrook
Can you test using the latest (trunk) sources? There have been a number of fixes w.r.t. error handling in the phpunit task.
comment:4 Changed 2 years ago by yegor256@…
it's a bit difficult for me since I'm installing phing by means of PEAR and there is no option (as I understand now) to install latest trunk version using PEAR, right?
maybe you could add such an option? I would love to use latest releases for testing purposes in all our projects
comment:5 Changed 2 years ago by mrook
To install beta/release candidate versions of Phing thru pear, use 'pear install phing/phing-beta', for instructions on how to check out the latest trunk, see http://www.phing.info/trac/wiki/Users/Download
comment:6 Changed 2 years ago by FaZend <team@…>
Would be perfect to make this possible:
pear install phing/phing-trunk
What do you think?

Please attach sample build files and other data to help me reproduce your issue.