Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
ce5884b4
Verified
Commit
ce5884b4
authored
8 months ago
by
Bartek Jaskulski
Browse files
Options
Downloads
Patches
Plain Diff
feat: import and export db dump before test run
Signed-off-by:
Bart Jaskulski
<
bjaskulski@protonmail.com
>
parent
3b36836c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/tests/codeception.yml
+10
-3
10 additions, 3 deletions
includes/tests/codeception.yml
with
10 additions
and
3 deletions
includes/tests/codeception.yml
+
10
−
3
View file @
ce5884b4
...
...
@@ -84,9 +84,16 @@
-
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
-
wp --path="$APACHE_DOCUMENT_ROOT" core update-db
-
wp --path="$APACHE_DOCUMENT_ROOT" wc update ||
true
set -x
wp db import ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql
wp --path="$APACHE_DOCUMENT_ROOT" core update-db
wp --path="$APACHE_DOCUMENT_ROOT" wc update || true
wp db export ${CI_PROJECT_DIR}/tests/codeception/tests/_data/db.sql
set +x
fi
-
echo "End before"
-
cd ${CI_PROJECT_DIR}
script
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment