From 94b1ac5e63fc3536a6ca518a1d811ae8e598236a Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Wed, 13 Nov 2024 22:07:01 +0100 Subject: [PATCH] revert: remove updating db in pipeline -- it fails too easily Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com> --- includes/tests/codeception.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/includes/tests/codeception.yml b/includes/tests/codeception.yml index 4ba3809..5a44e7a 100644 --- a/includes/tests/codeception.yml +++ b/includes/tests/codeception.yml @@ -84,18 +84,6 @@ - chmod -R a+w ${APACHE_DOCUMENT_ROOT}/wp-content/uploads - touch ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log - chmod a+w ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log - - | - if [ -f ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql ]; then - # Always ensure the database is up to date - set -x - cd "$APACHE_DOCUMENT_ROOT" - wp db import ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql - wp core update-db - wp wc update || true - wp db export ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql - cd ${CI_PROJECT_DIR} - set +x - fi - echo "End before" - cd ${CI_PROJECT_DIR} script: -- GitLab