Skip to content
Snippets Groups Projects
Verified Commit b38c693a authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: ensure correct wordpress path

parent ce5884b4
No related branches found
No related tags found
No related merge requests found
...@@ -88,10 +88,12 @@ ...@@ -88,10 +88,12 @@
if [ -f ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql ]; then if [ -f ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql ]; then
# Always ensure the database is up to date # Always ensure the database is up to date
set -x set -x
cd "$APACHE_DOCUMENT_ROOT"
wp db import ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql wp db import ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql
wp --path="$APACHE_DOCUMENT_ROOT" core update-db wp core update-db
wp --path="$APACHE_DOCUMENT_ROOT" wc update || true wp wc update || true
wp db export ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql wp db export ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql
cd ${CI_PROJECT_DIR}
set +x set +x
fi fi
- echo "End before" - echo "End before"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment