Skip to content

Commit d9146de

Browse files
authored
Skip SSL when running the tests locally (#11065)
1 parent 9860e20 commit d9146de

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bin/install-wp-tests.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ get_db_connection_flags() {
5555
EXTRA_FLAGS=" --host=$DB_HOSTNAME --protocol=tcp"
5656
fi
5757
fi
58+
59+
# Add --skip-ssl flag for local development (not in CI)
60+
if [ -z "$CI" ] && [ -z "$GITHUB_ACTIONS" ]; then
61+
EXTRA_FLAGS="$EXTRA_FLAGS --skip-ssl"
62+
fi
63+
5864
echo "--user=$DB_USER --password=$DB_PASS $EXTRA_FLAGS";
5965
}
6066

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: dev
3+
4+
Comment: Skip SSL verification when running the PHP tests locally.

0 commit comments

Comments
 (0)