Closed pimjansen closed 10 years ago
I have a feeling this is the same as #303 . There's a workaround mentioned in that ticket that you could take a look at
It is indeed working now i downloaded composer.phar and put it inside the root. But i still have this error:
Also the mail plugin is failed when i added it:
failure: email: committer: true
RUNNING PLUGIN: email PLUGIN STATUS: FAILED BUILD FAILURE
Also the copy build is failing every single time without even a proper error
Have you run composer update
in your root directory? Since composer wasn't working correctly before, it likely didn't run that command after you installed the plugin. You can either manually run composer update, or uninstall and reinstall the plugin. That should work.
I did that here is the result:
root@domain-w01:/var/domains/ci.domain.nu# composer update Loading composer repositories with package information Updating dependencies (including require-dev)
Writing lock file Generating autoload files
Still getting all kind of errors though:
RUNNING PLUGIN: php_code_sniffer PLUGIN STATUS: FAILED RUNNING PLUGIN: copy_build PLUGIN STATUS: FAILED RUNNING PLUGIN: email PLUGIN STATUS: FAILED BUILD FAILURE
And if i have no SMTP settings set, the system will mail with the server defaults i assume?
@Dirkos Do you get any other output at all from the build log, or is it just the bit you pasted at the bottom of your last comment?
The PHPCS plugin will log as a "fail" if it comes across any errors at all, for example, but it does list those errors.
As for SMTP settings, it will try to use the defaults yes, but the failure implies that it has received an error from the mail server when trying to send.
And for the original issue, try switching to the same user you're running PHPCI as, and do: which composer
- you'll probably find it can't locate it.
@dancryer Below is the build log after the builld. The composer if fixed now.
Build Log
Agent pid 32741
Cloning into '/var/domains/ci.twentyfour.nu/PHPCI/build/project1-build14'...
unset SSH_AUTH_SOCK;
unset SSH_AGENT_PID;
echo Agent pid 32741 killed;
Working copy created: /
RUNNING PLUGIN: composer
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing zendframework/zendxml (1.0.0)
Loading from cache
- Installing zendframework/zendframework (2.3.1)
Downloading: connection... Downloading: 0% Downloading: 5% Downloading: 10% Downloading: 15% Downloading: 20% Downloading: 25% Downloading: 30% Downloading: 35% Downloading: 40% Downloading: 45% Downloading: 50% Downloading: 55% Downloading: 60% Downloading: 65% Downloading: 70% Downloading: 75% Downloading: 80% Downloading: 85% Downloading: 90% Downloading: 95% Downloading: 100% Downloading: 100%
- Installing senet-library/zf2country (dev-master 8a91153)
Cloning 8a91153bb95e732a8b553e5ce294ef94e65b3268
- Installing zfr/rbac (1.2.0)
Loading from cache
- Installing zf-commons/zfc-rbac (dev-master 9f710ee)
Downloading: connection... Downloading: 100%
- Installing zendframework/zend-developer-tools (dev-master 763cecf)
Loading from cache
- Installing senet-library/zf2mail (dev-master 3e8758a)
Cloning 3e8758a3ee384b9041be9adb0ce7e2cfe36fdb42
- Installing symfony/process (v2.4.3)
Loading from cache
- Installing kriswallsmith/assetic (v1.1.2)
Loading from cache
- Installing rwoverdijk/assetmanager (dev-master bfba7e3)
Downloading: connection... Downloading: 0% Downloading: 20% Downloading: 25% Downloading: 40% Downloading: 45% Downloading: 65% Downloading: 70% Downloading: 85% Downloading: 90% Downloading: 100%
- Installing michaelgooden/mdg-uuid (1.0.0)
Loading from cache
- Installing symfony/console (v2.4.3)
Loading from cache
- Installing doctrine/lexer (v1.0)
Loading from cache
- Installing doctrine/annotations (v1.1.2)
Loading from cache
- Installing doctrine/collections (v1.2)
Loading from cache
- Installing doctrine/cache (v1.3.0)
Loading from cache
- Installing doctrine/inflector (v1.0)
Loading from cache
- Installing doctrine/common (v2.4.1)
Loading from cache
- Installing doctrine/dbal (v2.4.2)
Loading from cache
- Installing doctrine/orm (v2.4.2)
Loading from cache
- Installing doctrine/doctrine-module (0.8.0)
Loading from cache
- Installing doctrine/doctrine-orm-module (0.8.0)
Loading from cache
- Installing senet-library/zf2core (dev-master 91a77af)
Cloning 91a77af7cd8b9bf54768a41e57bd4e3c5265e7e4
- Installing senet-library/zf2admin (dev-master 3563ba4)
Cloning 3563ba4b67cfce16298df41ea6876b06e5102dfd
- Installing senet-library/zf2auth (dev-master c44a66a)
Cloning c44a66a7652f6dadd95f734378d620434e90367c
zendframework/zendframework suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if OpenSSL/Mcrypt extensions are unavailable)
zendframework/zendframework suggests installing ocramius/proxy-manager (ProxyManager 0.5.* to handle lazy initialization of services)
zendframework/zendframework suggests installing zendframework/zendpdf (ZendPdf for creating PDF representations of barcodes)
zendframework/zendframework suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form)
zendframework/zend-developer-tools suggests installing bjyoungblood/bjy-profiler (Version: dev-master, allows the usage of the (Zend) Db collector.)
zendframework/zend-developer-tools suggests installing ocramius/ocra-service-manager (OcraServiceManager can help you track dependencies within your application.)
kriswallsmith/assetic suggests installing twig/twig (Assetic provides the integration with the Twig templating engine)
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
michaelgooden/mdg-uuid suggests installing ircmaxell/random-lib (Fallback random byte generator for Zend\Math\Rand if OpenSSL/Mcrypt extensions are unavailable)
symfony/console suggests installing symfony/event-dispatcher ()
doctrine/orm suggests installing symfony/yaml (If you want to use YAML Metadata Mapping Driver)
doctrine/doctrine-module suggests installing doctrine/data-fixtures (Data Fixtures if you want to generate test data or bootstrap data for your deployments)
doctrine/doctrine-orm-module suggests installing doctrine/migrations (doctrine migrations if you want to keep your schema definitions versioned)
Writing lock file
Generating autoload files
PLUGIN STATUS: SUCCESS!
RUNNING PLUGIN: php_code_sniffer
PLUGIN STATUS: FAILED
RUNNING PLUGIN: copy_build
PLUGIN STATUS: FAILED
RUNNING PLUGIN: email
PLUGIN STATUS: FAILED
BUILD FAILURE
Hi @Dirkos - I assume you have managed to resolve this yourself? I'm going to close the issue, but please do feel free to reopen if that is not the case (with as much detail as possible about what problems you are still experiencing.)
Just add to your crontab PATH /usr/local/bin
.
Hi,
Im new to PHPCI and i looks good. The thing is that i cant get a build running. My build keeps telling me that Composer could not be found. The lib is installed globally:
which composer /usr/local/bin/composer
Same for the www-data user on which Debian is running apache2. The same error is with PHPCS. I just installed the plugin from the admin, how can it not find it? On the installed packages list i have:
squizlabs/php_codesniffer 1.5.2
Here is my build dump:
Agent pid 30345 Cloning into '/var/domains/ci.foo.nu/PHPCI/build/project1-build2'... unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 30345 killed; Working copy created: / RUNNING PLUGIN: composer Could not find Composer. PLUGIN STATUS: FAILED RUNNING PLUGIN: php_code_sniffer Could not find phpcs. PLUGIN STATUS: FAILED BUILD FAILURE Removing build.
And my phpci.yml `build_settings: ignore: