From 0c2a0f80532ee23a5ac015d02db17a10cb673789 Mon Sep 17 00:00:00 2001 From: Etienne Roudeix Date: Fri, 27 Sep 2013 09:50:28 +0200 Subject: [PATCH] call reset_install script in travis --- .travis.yml | 6 +----- reset_install.sh | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3ee2064b8..58420c414 100755 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,4 @@ env: - DB_USER=root before_script: - - composer self-update - - composer install --prefer-dist --dev - - sh -c "mysql -u$DB_USER -e 'SET FOREIGN_KEY_CHECKS = 0; DROP DATABASE IF EXISTS thelia;SET FOREIGN_KEY_CHECKS = 1;'; fi" - - php Thelia thelia:install --db_host=localhost --db_username=$DB_USER --db_name=thelia - - php install/faker.php + - echo | ./reset_install.sh diff --git a/reset_install.sh b/reset_install.sh index 8280173d9..a91a2dc1c 100755 --- a/reset_install.sh +++ b/reset_install.sh @@ -9,6 +9,9 @@ read test echo -e "\n\033[01;34m[INFO] Clearing caches\033[00m\n" php Thelia cache:clear +echo -e "\n\033[01;34m[INFO] Self-updating Composer\033[00m\n" +composer self-update + echo -e "\n\033[01;34m[INFO] Downloading vendors\033[00m\n" composer install --prefer-dist --optimize-autoloader