Skip to content

Commit 5371c38

Browse files
committed
Add basic test for docker-ensure-installed.sh script
(intentionally adding this before I fix it so we can see the CI failure light up red and then turn green)
1 parent 7a04048 commit 5371c38

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.test/config.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# https://github.com/docker-library/official-images/blob/7629e0d0a836d0ec718a6e053753479227cf6825/test/config.sh
4+
5+
imageTests[wordpress]+='
6+
wordpress-ensure-installed
7+
'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -Eeuo pipefail
3+
4+
docker run --rm "$1" sh -euc '
5+
[ ! -s wp-includes/version.php ] || exit 1
6+
docker-ensure-installed.sh
7+
[ -s wp-includes/version.php ] || exit 1
8+
'

0 commit comments

Comments
 (0)