All of my Travis builds failed because my composer dependencies are not installed (the before_script step seems skipped).
Here is my .travis.yml:
language: php
sudo: required
php:
- 5.4
before_script:
- composer install --dev
script:
- phpunit -c app
I'm sure this is something I missed but I'm not sure what. This is my last build log.
I took a look at your repository and the issue is the encoding of your Travis configuration file. Changing the encoding (removing the BOM) makes it work: https://travis-ci.org/huitiemesens/functionnal-test-generator/builds/99764001
Change the configuration to install your dependencies in the install step:
# ...
install:
- composer install
# ...
Related
symfony new my-project
is supposed to install a basic working symfony app but it gives me a project that's almost empty, with only composer.json, composer.lock and a vendor directory with only symfony/flex.
composer.json does include symfony/framework-bundle, but the bundle is not in vendors.
Running composer install does not do anything, and doesn't give an error.
Installing php-zip solved it for me (required by composer).
Looks like it might not be installed by default on recent ubuntu php installations, and either composer or the symfony binary failed silently.
sudo apt install php-zip
# now install vendors
composer update
I want to install friendsofsymfony/elastica-bundle via composer, but I got an error with symfony/flex. I tried to update symfony/flex via composer but always the same error and also composer load from the cache the version v1.0.80 but I have in the file composer.json the version 1.4.2 . I tried to uninstall composer and install it again but it's working too.
Thank you for your help. This is the error I find:
I have followed the instruction to upgrade Sylius from 1.1.6 to 1.2.9:
https://github.com/Sylius/Sylius/blob/master/UPGRADE-1.2.md
Now, composer no longer working with error: out of memory
I have already set to memory_limit=-1 (unlimited) in php.ini
And composer working fine on another folder (I have install new Sylius with no issue)
My env:
Windows, Xampp, PHP 7.2.7, Symfony 3.4.18
composer v1.8.0
Anyone could help?
Try this maybe can help you :
php -d memory_limit=-1 composer.phar update
I'm trying to check out(try) symfony 4, but when I try to install it via composer, the version 3.4.5 is getting installed?
I have used the same commands given in the docs
composer create-project symfony/skeleton symfony_4_practice
Installing symfony/skeleton (v3.4.5)
- Installing symfony/skeleton (v3.4.5): Downloading (100%)
Can anyone help me resolve this?
You must have php < 7.1, hence the Symfony 3.4
Upgrade to PHP 7.1 or more and you'll be all set.
Edit: as precised per bouchon, the PHP requirement can be found on the packagist package page.
It is also possible to see that directly in the package composer.json.
Can you try with:
composer create-project symfony/skeleton:4.0 symfony_4_practice
this command force the version
try this please:
composer self-update
composer create-project symfony/skeleton symfony_4_practice
I think you need to update composer only
I am trying to get phpUnit running on a centos running plesk pannel.
I have installed phpunit successfully.
Package Version State
File_Iterator 1.3.1 stable
PHPUnit 3.6.10 stable
PHPUnit_MockObject 1.1.1 stable
PHP_CodeCoverage 1.1.2 stable
PHP_Invoker 1.1.0 stable
PHP_Timer 1.0.2 stable
PHP_TokenStream 1.1.3 stable
Text_Template 1.1.1 stable
however whenever i run the phpunit command from the shell i get the following error:
PHP Warning: require_once(File/Iterator/Autoload.php): failed to open
stream: No such file or directory in
/usr/share/pear/PHPUnit/Autoload.php on line 45
PHP Fatal error:
require_once(): Failed opening required 'File/Iterator/Autoload.php'
(include_path='.:') in /usr/share/pear/PHPUnit/Autoload.php on line 45
Has anyone a clue how to solve the problem?
I tried a billion different articles and the commands that finally fixed this issue for me were the following:
sudo pear channel-discover pear.phpunit.de
sudo pear install --alldeps --force phpunit/phpunit
Then, when I ran phpunit, I didn't get the errors and it ran successfully.
I'm not sure how this translates for plesk, but the problem is the include_path specified in your php.ini file is set to just the current directory. Verify where your php.ini file is by running the following from the command line...
% php --info
...and look for the following entries...
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
In this case, edit /etc/php.ini and look for the for include_path. In my case I need to set it as follows...
include_path = ".:/opt/php-5.3.14/lib/php/pear"
Your include path must include the directory where PEAR installs all those packages. Add /usr/share/pear to your include path in php.ini--probably /etc/php5/cli/php.ini.
On the Ubuntu (10.04) I also added /usr/share/php to the /etc/php5/cli/php.ini.
In Fedora release 19 it has been solved by adding the /usr/share/pear/ path to the include_path of /etc/php.ini