Я пытаюсь настроить Travis-ci с помощью symfony (не просто!). Когда я запускаю composer install, сразу после загрузки всего пакета, composer пытается очистить кеш и выполнить SQL-запрос (почему?), И не найти таблицу (команда миграции после). Я не понимаю, почему композитор пытается выполнить запрос.
Это код в travisci.yml:
install:
- cp .env.dist .env
- mysql -e 'create database testing;'
- composer install
after_install:
- php ./bin/console doctrine:migrations:diff
- php ./bin/console doctrine:migrations:migrate --no-interaction
#- php bin/console doctrine:migrations:migrate
#- php bin/console doctrine:fixtures:load -n --env=test
#- ./vendor/bin/simple-phpunit install
- ./bin/phpunit install
и результат:
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
Executing script cache:clear [KO]
[KO]
Script cache:clear returned with error code 1
!!
!! // Clearing the cache for the dev environment with debug
!! // true
!!
!!
!! In AbstractMySQLDriver.php line 62:
!!
!! An exception occurred while executing 'SELECT t0.id AS id_1, t0.created AS
!! created_2, t0.updated AS updated_3, t0.name AS name_4, t0.source AS source_
!! 5 FROM twig_template t0 WHERE t0.name = ? LIMIT 1' with params [{}]:
!!
!! SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testing.twig_tem
!! plate' doesn't exist
!!
!!
!! In PDOStatement.php line 144:
!!
!! SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testing.twig_tem
!! plate' doesn't exist
!!
!!
!! In PDOStatement.php line 142:
!!
!! SQLSTATE[42S02]: Base table or view not found: 1146 Table 'testing.twig_tem
!! plate' doesn't exist
!!
или здесь в деталях: https://travis -ci.org / Dannebicque / intranetV3 / builds / 455840273
Спасибо за вашу помощь
David