Dist Focal + php 7.4 and composer install

am running composer install --optimize-autoloader --no-interaction --no-suggest --prefer-dist in before_script event. Travis crash completely without clue of what is going on. I tried to run in debug mode but as soon as I hit enter, travis is closing connection. seem to crash hardly!

Can you show me the log? What do you mean “Travis is closing the connection”? I need more information, also the .travis.yml would be nice.

I dont have much to give. here is how it finish:

There is no more log, even if I display raw logs. VM just die or something like that…

dist: focal
language: php
php:
  - 7.4

env:
  global:
   addons:
  apt:
    packages:
    - librabbitmq-dev

services:
  - mysql
  - redis

cache:
  apt: true
  directories:
    - $HOME/.composer/cache/files
    - ${TRAVIS_BUILD_DIR}/.travis/module-cache

before_install:
  - set -e
  - echo "Starting before_install."
  - . some-scripts/travis-functions.sh
  - before_install

install:
  - echo "Starting install."
  - MODULES="redis.so:redis protobuf.so:protobuf swoole.so:swoole igbinary.so:igbinary amqp.so:amqp apcu.so:apcu" pecl_cache

before_script:
  - echo "Starting before_script."
  - |
    if echo ${COMMIT_MESSAGE} | grep -iF '#coverage' &>/dev/null ; then  \
        echo "xdebug.max_nesting_level=2500" >> ${HOME}/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter ; \
        chmod +x ./cc-test-reporter ; \
        mkdir build ; \
        ./cc-test-reporter before-build ; \
    else \
      phpenv config-rm xdebug.ini ; \
    fi
  - redis-cli flushall
  - sudo sysctl fs.file-max=500000
  - echo "memory_limit=4G" >> ${HOME}/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - rm -rf ${TRAVIS_BUILD_DIR}/var/cache
  - mkdir -p ${TRAVIS_BUILD_DIR}/var/cache
  - |
    { \
        echo "DATABASE_URL=mysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_CLUSTER_WRITE_RECORD_SET}:3306/${API_DB_NAME}"; \
        echo "DATABASE_URL_SLAVE=mysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_CLUSTER_READ_RECORD_SET}:3306/${API_DB_NAME}"; \
        echo "APPLICATION_VERSION=${BUILD_NAME}"; \
        echo "SERVICE_NAME=testing"; \
    } > ${TRAVIS_BUILD_DIR}/.env.test.local
  - composer install --optimize-autoloader --no-interaction --no-suggest --prefer-dist
  - composer dump-env test
  - bin/console assets:install ./public --no-interaction
  - echo "${BUILD_NAME}" > "${TRAVIS_BUILD_DIR}/public/version.txt"
  - echo "${TRAVIS_JOB_NUMBER}" > "${TRAVIS_BUILD_DIR}/public/build.txt"

script:
  - echo "Starting script."
  - |
    if echo ${COMMIT_MESSAGE} | grep -iF '#skip-tests' &>/dev/null ; then \
      echo "Skipping unit tests." ; \
    else \
      ulimit -a ; \
      pecl channel-update pecl.php.net ; \
      mysql -e 'CREATE DATABASE API_DB_NAME;' ; \
      mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql ; \
      bin/phpunit --verbose -c ${TRAVIS_BUILD_DIR}/phpunit.xml ; \
    fi
  - rm -rf ${TRAVIS_BUILD_DIR}/var/cache/* ${TRAVIS_BUILD_DIR}/var/logs/* ${TRAVIS_BUILD_DIR}/vendor/composer/autoload_real.php ${TRAVIS_BUILD_DIR}/vendor/autoload.php