-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
set -e | ||
set -ex | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
docker-compose exec wordpress sh -c "\ | ||
cd /var/www/html/wp-content/plugins/two-factor-provider-webauthn && \ | ||
phpcov merge coverage-report $* | ||
" | ||
exec docker compose exec -w /var/www/html/wp-content/plugins/two-factor-provider-webauthn wordpress phpcov merge coverage-report "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
set -e | ||
set -ex | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
docker-compose exec -T wordpress rm -rf /var/www/html/wp-content/mu-plugins | ||
docker-compose run --rm cli sh -c '\ | ||
docker compose exec -T wordpress rm -rf /var/www/html/wp-content/mu-plugins | ||
docker compose run --rm cli sh -c '\ | ||
wp db reset --yes && \ | ||
wp core install --url="https://localhost:8443" --title="Test Site" --admin_user=admin --admin_password=password [email protected] --skip-email && \ | ||
wp rewrite structure "/%postname%/" && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
set -e | ||
set -ex | ||
|
||
cd "$(dirname "$0")/.." | ||
docker-compose up -d --build | ||
while ! docker-compose run --rm cli wp db check; do | ||
docker compose up -d --build | ||
while ! docker compose run --rm cli wp db check; do | ||
sleep 1; | ||
done | ||
|
||
mkdir -p -m 0777 coverage-report | ||
"$(dirname "$0")/reset-database.sh" | ||
|
||
docker-compose exec -T wordpress cp -aR /var/www/mu-plugins /var/www/html/wp-content/ | ||
docker compose exec -T wordpress cp -aR /var/www/mu-plugins /var/www/html/wp-content/ |