зеркало из https://github.com/mozilla/fxa.git
Merge pull request #17146 from mozilla/fix-html-report
fix(html_report): add if statement
This commit is contained in:
Коммит
f1d9ace06e
|
@ -334,7 +334,7 @@ commands:
|
|||
steps:
|
||||
- run:
|
||||
name: Ensure directories
|
||||
command: mkdir -p artifacts/tests && mkdir -p ~/.pm2/logs && mkdir -p ~/screenshots && mkdir -p artifacts/blob-report && mkdir -p artifacts/playwright-report
|
||||
command: mkdir -p artifacts/tests && mkdir -p ~/.pm2/logs && mkdir -p ~/screenshots
|
||||
- store_artifacts:
|
||||
path: artifacts
|
||||
- store_artifacts:
|
||||
|
@ -349,8 +349,21 @@ commands:
|
|||
- run:
|
||||
name: Rename Reports
|
||||
command: |
|
||||
cd artifacts/blob-report
|
||||
mv report.zip reports-${CIRCLE_NODE_INDEX}.zip
|
||||
mkdir -p artifacts/blob-report && mkdir -p artifacts/playwright-report
|
||||
echo "Starting rename reports step"
|
||||
cd artifacts/blob-report || { echo "Directory artifacts/blob-report not found"; exit 1; }
|
||||
echo "Current directory: $(pwd)"
|
||||
echo "Listing contents before renaming:"
|
||||
ls -la
|
||||
if [ -f report.zip ]; then
|
||||
mv report.zip reports-${CIRCLE_NODE_INDEX}.zip
|
||||
echo "Renamed report.zip to reports-${CIRCLE_NODE_INDEX}.zip"
|
||||
else
|
||||
echo "No report.zip found, skipping rename for this node."
|
||||
fi
|
||||
echo "Listing contents after renaming:"
|
||||
ls -la
|
||||
when: always
|
||||
- store_artifacts:
|
||||
path: artifacts/blob-report
|
||||
- persist_to_workspace:
|
||||
|
@ -683,12 +696,28 @@ jobs:
|
|||
at: /home/circleci/project
|
||||
- run:
|
||||
name: Merge blob Reports
|
||||
command: ls -l artifacts/blob-report && npx playwright merge-reports --reporter=blob artifacts/blob-report
|
||||
command: |
|
||||
cd artifacts/blob-report
|
||||
echo "Merging blob reports"
|
||||
ls -l
|
||||
if ls *.zip 1> /dev/null 2>&1; then
|
||||
npx playwright merge-reports --reporter=blob .
|
||||
else
|
||||
echo "No report zip files found, skipping blob merge."
|
||||
fi
|
||||
- store_artifacts:
|
||||
path: blob-report
|
||||
- run:
|
||||
name: Merge html Reports
|
||||
command: npx playwright merge-reports --reporter=html artifacts/blob-report
|
||||
command: |
|
||||
cd artifacts/blob-report
|
||||
echo "Merging HTML reports"
|
||||
ls -l
|
||||
if ls *.zip 1> /dev/null 2>&1; then
|
||||
npx playwright merge-reports --reporter=html .
|
||||
else
|
||||
echo "No report zip files found, skipping HTML merge."
|
||||
fi
|
||||
- store_artifacts:
|
||||
path: playwright-report
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче