From e92a904c1ef3c01d61f4f807509c3e8db1bcc5ce Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 4 Nov 2018 00:50:21 +0100 Subject: [PATCH] TASK: Use sqlite --- .gitlab-ci.yml | 6 +----- tests/Classes/Acceptance/Typo3Environment.php | 14 +++++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c94714d..79c605f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,14 +26,10 @@ test:acceptance: dependencies: - setup:composer before_script: - - apk --no-cache add mysql + - apk --no-cache add sqlite - cp public/index.php app - cp public/typo3/index.php app/typo3/index.php - cp public/typo3/install.php app/typo3/install.php - - mysql -u root -proot -e 'CREATE DATABASE workshopgitlabtesting CHARACTER SET utf8 COLLATE utf8_general_ci;' - - mysql -u root -proot -e "CREATE USER 'testing'@'localhost' IDENTIFIED BY 'testing';" - - mysql -u root -proot -e "GRANT ALL PRIVILEGES ON workshopgitlabtesting.* TO 'testing'@'localhost';" - - mysql -u root -proot -e 'GRANT ALL PRIVILEGES ON `workshopgitlabtesting\_%`.* TO testing@localhost;' - TYPO3_PATH_ROOT=$(pwd)/app/typo3temp/var/tests/acceptance TYPO3_PATH_APP=$(pwd)/app/typo3temp/var/tests/acceptance php -S 127.0.0.1:8080 -t app/typo3temp/var/tests/acceptance & script: - ./vendor/bin/codecept run diff --git a/tests/Classes/Acceptance/Typo3Environment.php b/tests/Classes/Acceptance/Typo3Environment.php index b7a3645..5d2feff 100644 --- a/tests/Classes/Acceptance/Typo3Environment.php +++ b/tests/Classes/Acceptance/Typo3Environment.php @@ -33,13 +33,13 @@ class Typo3Environment extends BackendEnvironment public function _initialize() { ArrayUtility::mergeRecursiveWithOverrule($this->config, [ - // 'typo3DatabaseDriver' => 'pdo_sqlite', - 'typo3DatabaseDriver' => 'pdo_mysql', - 'typo3DatabaseHost' => 'localhost', - 'typo3DatabaseUsername' => 'testing', - 'typo3DatabasePassword' => 'testing', - 'typo3DatabaseName' => 'workshopgitlabtesting', - 'typo3DatabasePort' => '3306', + 'typo3DatabaseDriver' => 'pdo_sqlite', + // 'typo3DatabaseDriver' => 'pdo_mysql', + // 'typo3DatabaseHost' => 'localhost', + // 'typo3DatabaseUsername' => 'testing', + // 'typo3DatabasePassword' => 'testing', + // 'typo3DatabaseName' => 'workshopgitlabtesting', + // 'typo3DatabasePort' => '3306', 'coreExtensionsToLoad' => [ 'core', 'extbase',