Skip to content

Commit cc4a684

Browse files
Update Maestro Buildkite env names
1 parent f1f11ab commit cc4a684

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.buildkite/commands/run-maestro-tests.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ set -euo pipefail
44
# Run the Maestro smoke suite through the repository runner.
55
#
66
# Expected CI secrets:
7-
# MAESTRO_WOO_SHARED_STORE_URL
8-
# MAESTRO_WOO_SHARED_EMAIL
9-
# MAESTRO_WOO_SHARED_PASSWORD
10-
# MAESTRO_WOO_SHARED_CONSUMER_KEY
11-
# MAESTRO_WOO_SHARED_CONSUMER_SECRET
7+
# MAESTRO_WOO_SHARED_JETPACK_STORE_URL
8+
# MAESTRO_WOO_SHARED_WPCOM_EMAIL
9+
# MAESTRO_WOO_SHARED_WPCOM_PASSWORD
1210
#
1311
# Optional controls:
1412
# MAESTRO_STORE=shared|lab
1513
# MAESTRO_INCLUDE_TAGS=smoke_core,smoke_extended,destructive
1614
# MAESTRO_REPEAT=3
1715
# MAESTRO_APK_PATH=/path/to/beta.apk
16+
# MAESTRO_SEED=true
1817

1918
if .buildkite/commands/should-skip-job.sh --job-type validation; then
2019
echo "Skipping Maestro tests - no relevant changes"
@@ -25,6 +24,10 @@ STORE="${MAESTRO_STORE:-shared}"
2524
INCLUDE_TAGS="${MAESTRO_INCLUDE_TAGS:-smoke_core}"
2625
REPEAT="${MAESTRO_REPEAT:-1}"
2726
OUTPUT_DIR="${MAESTRO_OUTPUT_DIR:-WooCommerce/build/outputs/maestro-smoke}"
27+
SEED_ARGS=()
28+
if [[ "${MAESTRO_SEED:-false}" == "true" ]]; then
29+
SEED_ARGS+=(--seed)
30+
fi
2831

2932
if [[ -n "${MAESTRO_APK_PATH:-}" ]]; then
3033
APK_PATH="$MAESTRO_APK_PATH"
@@ -43,6 +46,7 @@ if [[ -n "$APK_PATH" ]]; then
4346
--include-tags "$INCLUDE_TAGS" \
4447
--repeat "$REPEAT" \
4548
--output-dir "$OUTPUT_DIR" \
49+
"${SEED_ARGS[@]}" \
4650
--no-open \
4751
--apk "$APK_PATH"
4852
else
@@ -51,6 +55,7 @@ else
5155
--include-tags "$INCLUDE_TAGS" \
5256
--repeat "$REPEAT" \
5357
--output-dir "$OUTPUT_DIR" \
58+
"${SEED_ARGS[@]}" \
5459
--no-open
5560
fi
5661
MAESTRO_EXIT_STATUS=$?

0 commit comments

Comments
 (0)