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

revert: remove updating db in pipeline -- it fails too easily

parent b38c693a
No related branches found
No related tags found
No related merge requests found
...@@ -84,18 +84,6 @@ ...@@ -84,18 +84,6 @@
- chmod -R a+w ${APACHE_DOCUMENT_ROOT}/wp-content/uploads - chmod -R a+w ${APACHE_DOCUMENT_ROOT}/wp-content/uploads
- touch ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log - touch ${APACHE_DOCUMENT_ROOT}/wp-content/debug.log
- chmod a+w ${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" - echo "End before"
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment