google-code-backups / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Error by execution custom phpunit task #204

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create phing build task (it executes and work from command line)
2. Add this build to xinc
3. Got sh: phpunit: command not found during execution

What is the expected output? What do you see instead?
Since phing -f build.xml works separately, I was expected to get it working
in xinc as well.
Phing command /usr/local/bin/phing -logger phing.listener ... from log
works in shell.
I'm using
http://www.priebsch.de/2008/04/phpunit-test-and-code-coverage-statistics-with-ph
ing/#content
approach in phing and succesfully tested it separately in phing.

What version of the product are you using? On what operating system?

# xinc-settings list-all

Section:       xinc

version        = 2.0.0b196
etc            = /etc/xinc
etc_conf_d     = /etc/xinc/conf.d
dir            = /var/xinc
status_dir     = /var/xinc/status
project_dir    = /var/xinc/projects
www_dir        = /var/www/xinc
www_port       = 8080
www_ip         = 192.168.1.101
log_dir        = /var/log
tmp_dir        = /tmp/xinc

Section:       web
-No values-

Section:       googleanalytics
-No values-

Section:       phing
path           = /usr/local/bin/phing

Section:       phpunit
path           = /usr/local/bin/phpunit

Section:       php
path           = /usr/local/bin/php

Last 2 sections were added to try resolve issue, but it didn't work.

Please provide any additional information below.

Log:

[info]   [2009-08-04 16:32:13-Europe/Moscow] [build] eliza: Processing builders
 [info]   [2009-08-04 16:32:13-Europe/Moscow] Buildfile:
/var/xinc/projects/eliza/build.xml

 [info]   [2009-08-04 16:32:13-Europe/Moscow] Execution of target
"unittest" failed for the following reason:
/var/xinc/projects/eliza/build.xml:24:23: Unit tests failed

 [info]   [2009-08-04 16:32:13-Europe/Moscow]

 [info]   [2009-08-04 16:32:13-Europe/Moscow] BUILD FAILED

 [info]   [2009-08-04 16:32:13-Europe/Moscow]
/var/xinc/projects/eliza/build.xml:24:23: Unit tests failed

 [info]   [2009-08-04 16:32:13-Europe/Moscow] Total time: 0.1611 seconds

 [info]   [2009-08-04 16:32:13-Europe/Moscow]

 [error]  [2009-08-04 16:32:13-Europe/Moscow] Errors on command line:
 [error]  [2009-08-04 16:32:13-Europe/Moscow] sh: phpunit: command not found
 [error]  [2009-08-04 16:32:13-Europe/Moscow] [build] eliza: Phing command
/usr/local/bin/phing -logger phing.listener.NoBannerLogger -logfile
/var/xinc/projects/eliza/19b9c4c17b664748f6dcffb8550853d3.log -buildfile
/var/xinc/projects/eliza/build.xml -Dxinc.buildlabel="BUILD.271"
-Dprojectname="eliza" -Dcctimestamp="1249389133"
-Dxinc."project.name"="eliza" -Dxinc."build.number"="271"
-Dxinc."build.label"="BUILD.271" -Dxinc."workingdir"="/var/xinc/projects"
-Dxinc."statusdir"="/var/xinc/status"
-Dxinc."projectdir"="/var/xinc/projects"
-Dxinc."dir"="/var/xinc/projects/eliza"
-Dxinc."build.timestamp"="1249389133" -Dxinc."changeset"="ModificationSet
Previous Revision:
New Revision:
Change detected: yes
Added Resources: 0
Modified Resources: 0
Deleted Resources: 0
Conflict Resources: 0
Merged Resources: 0
"  2>&1 exited with status: 1
 [error]  [2009-08-04 16:32:13-Europe/Moscow] [build] eliza: Build FAILED
 [error]  [2009-08-04 16:32:13-Europe/Moscow] [build] eliza: BUILD FAILED

Original issue reported on code.google.com by grunic...@gmail.com on 4 Aug 2009 at 12:39

GoogleCodeExporter commented 8 years ago

Original comment by opitz.al...@googlemail.com on 1 Oct 2011 at 11:25

GoogleCodeExporter commented 8 years ago
Hi, does this issue persists in newer versions of Xinc and Phing?

Original comment by opitz.al...@googlemail.com on 26 Aug 2013 at 8:52

GoogleCodeExporter commented 8 years ago
Will close for now. Please open a new report if you have problems.

Original comment by opitz.al...@googlemail.com on 22 Oct 2013 at 7:35