phingofficial / phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.
https://www.phing.info
GNU Lesser General Public License v3.0
1.16k stars 319 forks source link

improve phing composer relationship (Trac #1146) #569

Closed phing-issues-importer closed 7 years ago

phing-issues-importer commented 8 years ago

Requirements:

Migrated from https://www.phing.info/trac/ticket/1146

{
    "status": "new", 
    "changetime": "2014-10-04T09:43:07", 
    "description": "Requirements:\n\n* Allow to load composer autoload.php file when phing is executed in a global scope\n* Allow to place composer autoload.php file in a different folder setted by config->vendor-dir\n* Allow to ignore errors when taskdef require a class and autoload.php do not exist, in example when a phing task is executed by composer pre-install-cmd.", 
    "reporter": "alex@corretge.cat", 
    "cc": "", 
    "resolution": "", 
    "_ts": "1412415787079218", 
    "component": "phing-core", 
    "summary": "improve phing composer relationship", 
    "priority": "tbd", 
    "keywords": "", 
    "version": "2.8.2", 
    "time": "2014-10-04T08:56:22", 
    "milestone": "Backlog", 
    "owner": "mrook", 
    "type": "enhancement"
}
phing-issues-importer commented 8 years ago

Trac update at 20141004T09:39:49: anonymous commented:

I push the changes here

https://github.com/corretgecom/phing

but I have a lot of problems passing the tests with my PEAR that is using pear installed as a phing dependence on phing/bin folder.

phing-issues-importer commented 8 years ago

Trac update at 20141004T09:43:07: alex@corretge.cat commented:

Replying to [comment:1 anonymous]:

I push the changes here

https://github.com/corretgecom/phing

but I have a lot of problems passing the tests with my PEAR that is using pear installed as a phing dependence on phing/bin folder.

1) PearPkg2CompatibilityTest::testActiveMaintainers BuildException: /Volumes/develop/corretge/phing/phing/test/etc/regression/524/build.xml:47:27: Unable to write package file.

0 /Volumes/develop/corretge/phing/phing/classes/phing/UnknownElement.php(101): PearPackage2Task->main()

1 /Volumes/develop/corretge/phing/phing/classes/phing/Task.php(280): UnknownElement->main()

2 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php(337): Task->perform()

3 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php(367): Target->main()

4 /Volumes/develop/corretge/phing/phing/classes/phing/Project.php(870): Target->performTasks()

5 /Volumes/develop/corretge/phing/phing/test/classes/phing/BuildFileTest.php(237): Project->executeTarget('active')

6 /Volumes/develop/corretge/phing/phing/test/classes/phing/regression/PearPkg2CompatibilityTest.php(74): BuildFileTest->executeTarget('active')

7 [internal function]: PearPkg2CompatibilityTest->testActiveMaintainers()

8 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(906): ReflectionMethod->invokeArgs(Object(PearPkg2CompatibilityTest), Array)

9 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(772): PHPUnit_Framework_TestCase->runTest()

10 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestResult.php(643): PHPUnit_Framework_TestCase->runBare()

11 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(708): PHPUnit_Framework_TestResult->run(Object(PearPkg2CompatibilityTest))

12 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestSuite.php(751): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))

13 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestSuite.php(751): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))

14 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(423): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))

15 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)

16 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(138): PHPUnit_TextUI_Command->run(Array, true)

17 /Users/alcovw/.composer/vendor/phpunit/phpunit/phpunit(54): PHPUnit_TextUI_Command::main()

18 {main}

Previous exception 'Exception' with message 'PEAR_PackageFileManager2 Error: Package validation failed: Error: Unknown channel "pear.phing.info" ' in /Volumes/develop/corretge/phing/phing/classes/phing/tasks/ext/PearPackage2Task.php:288 Stack trace:

0 /Volumes/develop/corretge/phing/phing/classes/phing/UnknownElement.php(101): PearPackage2Task->main()

1 /Volumes/develop/corretge/phing/phing/classes/phing/Task.php(280): UnknownElement->main()

2 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php(337): Task->perform()

3 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php(367): Target->main()

4 /Volumes/develop/corretge/phing/phing/classes/phing/Project.php(870): Target->performTasks()

5 /Volumes/develop/corretge/phing/phing/test/classes/phing/BuildFileTest.php(237): Project->executeTarget('active')

6 /Volumes/develop/corretge/phing/phing/test/classes/phing/regression/PearPkg2CompatibilityTest.php(74): BuildFileTest->executeTarget('active')

7 [internal function]: PearPkg2CompatibilityTest->testActiveMaintainers()

8 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(906): ReflectionMethod->invokeArgs(Object(PearPkg2CompatibilityTest), Array)

9 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(772): PHPUnit_Framework_TestCase->runTest()

10 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestResult.php(643): PHPUnit_Framework_TestCase->runBare()

11 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestCase.php(708): PHPUnit_Framework_TestResult->run(Object(PearPkg2CompatibilityTest))

12 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestSuite.php(751): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))

13 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/Framework/TestSuite.php(751): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))

14 /Volumes/develop/corretge/phing/phing/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(423): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult))

15 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(186): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)

16 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(138): PHPUnit_TextUI_Command->run(Array, true)

17 /Users/alcovw/.composer/vendor/phpunit/phpunit/phpunit(54): PHPUnit_TextUI_Command::main()

18 {main}

/Volumes/develop/corretge/phing/phing/classes/phing/tasks/ext/PearPackage2Task.php:288 /Volumes/develop/corretge/phing/phing/classes/phing/UnknownElement.php:101 /Volumes/develop/corretge/phing/phing/classes/phing/Task.php:280 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php:337 /Volumes/develop/corretge/phing/phing/classes/phing/Target.php:367 /Volumes/develop/corretge/phing/phing/classes/phing/Project.php:870 /Volumes/develop/corretge/phing/phing/test/classes/phing/BuildFileTest.php:237 /Volumes/develop/corretge/phing/phing/test/classes/phing/regression/PearPkg2CompatibilityTest.php:74 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:186 /Users/alcovw/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php:138

mrook commented 7 years ago

Closing because #309 was closed.