From 88342d0f6543a6220f879d294e0b49149e3cd195 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Sat, 30 Dec 2017 12:41:57 +0000 Subject: [PATCH 1/2] Test sylius:install command on Travis --- etc/travis/suites/application/script.sh | 1 + etc/travis/suites/application/script/test-installer | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100755 etc/travis/suites/application/script/test-installer diff --git a/etc/travis/suites/application/script.sh b/etc/travis/suites/application/script.sh index 7448d10ea75..ba2b450c967 100755 --- a/etc/travis/suites/application/script.sh +++ b/etc/travis/suites/application/script.sh @@ -12,6 +12,7 @@ commands=( validate-yarn-packages test-phpspec test-phpunit + test-installer test-fixtures test-behat-without-javascript test-behat-with-javascript diff --git a/etc/travis/suites/application/script/test-installer b/etc/travis/suites/application/script/test-installer new file mode 100755 index 00000000000..0268565b2b3 --- /dev/null +++ b/etc/travis/suites/application/script/test-installer @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../../../bash/common.lib.sh" + +print_header "Testing (Installer)" "Sylius" +run_command "bin/console sylius:install --no-interaction --env=test_cached --no-debug -vvv" From 972d865ea2d5d3c475eb69f404be1675141375c7 Mon Sep 17 00:00:00 2001 From: Kamil Kokot Date: Sat, 30 Dec 2017 12:50:22 +0000 Subject: [PATCH 2/2] Fix installation errors by removing cache clearing during the process --- .../Installer/Provider/DatabaseSetupCommandsProvider.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php b/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php index 087caedbb88..b8f0fe1d371 100644 --- a/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php +++ b/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php @@ -45,12 +45,10 @@ public function getCommands(InputInterface $input, OutputInterface $output, Ques return [ 'doctrine:database:create', 'doctrine:migrations:migrate' => ['--no-interaction' => true], - 'cache:clear', ]; } return array_merge($this->getRequiredCommands($input, $output, $questionHelper), [ - 'cache:clear', 'doctrine:migrations:version' => [ '--add' => true, '--all' => true,