PHP Composer not running


#1

I have a boiler plate project with Symfony 3, composer.json in the root etc.

CircleCI is not running composer, the step is not firing off at all.

One hint is that if I remove the circleci.yml file composer does run, but then I get failures due to timezone etc. so I do need that file:

machine:
  php:
    version: 7.0.4

dependencies:
  override:
    - echo "date.timezone = UTC" > /opt/circleci/php/$(phpenv global)/etc/conf.d/date.ini
  pre:
    - sudo add-apt-repository ppa:ondrej/php -y
    - sudo apt-get update
    - sudo apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-xml php7.0-mbstring
    - sudo a2dismod php5
    - sudo a2enmod php7.0
    - pip install awsebcli

deployment:
  develop:
    branch: dev
    commands:
      - eb use abc-api-dev --profile default
      - eb deploy --profile default

#2

This is probably because CircleCI’s inferred composer command occurs during the dependencies phase, which you are overriding. You can either:

a) not override the dependencies phase - put the commands in the override step in pre or post instead
b) simply run composer yourself, in the override step, together with the commands you already have in there.


#3