dancryer / PHPCI

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

Could not find composer/composer.phar #1297

Closed DavidGarciaCat closed 7 years ago

DavidGarciaCat commented 7 years ago

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

To help us better understand your issue, please answer the following.

Expected behaviour

Install composer vendors

Actual behaviour

composer is installed

$ which composer
/usr/local/bin/composer

and working

$ composer install --no-dev -o
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files

however phpci returns this

Working copy created: /
RUNNING PLUGIN: \PHPCI\Plugin\Composer
Exception: Could not find composer/composer.phar
PLUGIN: FAILED
Exception: Plugin failed: \PHPCI\Plugin\Composer
Removing Build.

Steps to reproduce

Try to re-build a commit again

Environment info

Operating System: Ubuntu 16.04 PHP Version: PHP 7.0.13-0ubuntu0.16.04.1 (cli) ( NTS ) MySQL Version: mysql Ver 15.1 Distrib 10.0.29-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

DavidGarciaCat commented 7 years ago

This is - indeed - fixing the problem https://github.com/Block8/PHPCI/issues/303 but this is not the best approach, right?