Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions schutzbot/playwright_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
set -euo pipefail

PW_WORKERS=4
if [ -n "${TMT_TREE:-}" ]; then
# Move to the directory with sources

if [ -n "${PACKIT_PACKAGE_NAME:-}" ]; then
# Runs in CI (Packit)
cd "${TMT_TREE}"
npm ci
elif [ -n "${TMT_SOURCE_DIR:-}" ]; then
# Runs in dist-git
cd "${TMT_SOURCE_DIR}/cockpit-image-builder"
npm ci
elif [ "${CI:-}" != "true" ]; then
# Local fallback
cd ../
npm ci
# halve the workers on schutzbot to increase reliability
Expand Down
Loading