mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Publish dumped ref-test images as an Azure CI artifact
Whenever the tests produce a `test-dumps` directory, publish the files in it as an artifact. This lets us peek at the screenshots and see what's mismatched, instead of just having to guess.
This commit is contained in:
parent
edaa5061c4
commit
b74f5b1ca1
Notes:
sideshowbarker
2024-07-17 03:51:15 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/b74f5b1ca1 Pull-request: https://github.com/SerenityOS/serenity/pull/21873 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/trflynn89
1 changed files with 11 additions and 0 deletions
|
@ -159,6 +159,17 @@ jobs:
|
|||
UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1'
|
||||
TESTS_ONLY: 1
|
||||
|
||||
# Detect if any test dumps exist, which enables the next step to publish them as an artifact.
|
||||
- bash: |
|
||||
if [[ -d $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps ]]; then
|
||||
echo "##vso[task.setvariable variable=TestDumpsExist]true"
|
||||
fi
|
||||
condition: always()
|
||||
|
||||
- publish: $(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird/test-dumps
|
||||
artifact: 'test-dumps-${{ parameters.os }}-${{ parameters.fuzzer }}'
|
||||
condition: eq(variables.TestDumpsExist, 'true')
|
||||
|
||||
- ${{ if and(eq(parameters.fuzzer, 'NoFuzz'), eq(parameters.os, 'Linux') ) }}:
|
||||
- script: |
|
||||
./run.sh
|
||||
|
|
Loading…
Reference in a new issue