From a01c8917a9e7de7f9479a0fbdaf2882412d2c6cb Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 21 Dec 2017 13:16:18 +0100 Subject: [PATCH] [BUGFIX] Install dependencies before importing the DB The dependencies provide the SQL file that will be used for the DB import. So this order is necessary for the build to pass reliably. --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5fcb79b..85e2294 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,11 @@ cache: before_install: - phpenv config-rm xdebug.ini + +install: +- composer install + +before_script: - > echo; echo "Creating the database and importing the database schema"; @@ -38,9 +43,6 @@ before_install: mysql -u root -e "GRANT ALL ON ${PHPLIST_DATABASE_NAME}.* TO '${PHPLIST_DATABASE_USER}'@'%';"; mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/phplist4-core/Database/Schema.sql; -install: -- composer install - script: - > echo;