dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

Project specific composer binary. Get findBinary to search in build directory. #1257

Open netbrothers-tr opened 8 years ago

netbrothers-tr commented 8 years ago

Expected behaviour

I would like the run-builds command to find a composer.phar which resides in the root of the build directory. In the phpci.yml I can only give absolute paths for composer, right? But the build directory is different for every build. Have I overlooked something? The info at https://github.com/Block8/PHPCI/wiki/Composer-plugin seems wrong where it states that the directory option defaults to the build root.

Actual behaviour

The plugin will search for the composer binary in /path/to/phpci and in /path/to/phpci/vendor/bin (of course /path/to depends on your installation path) or globally but not in the build directory.

Steps to reproduce

Try to build a project whose specific composer binary resides in the root of the project and is not available globally.

Environment info

Operating System: Ubuntu Server 14.04 PHP Version: 5.5.9 MySQL Version: 5.6.31