mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
gitlab: Use winetest JUnit output mode.
This commit is contained in:
parent
ae54fa4721
commit
530b3f1694
Notes:
Alexandre Julliard
2024-10-16 23:22:22 +02:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6672
1 changed files with 36 additions and 4 deletions
|
@ -57,7 +57,13 @@ test-linux-64:
|
|||
- job: build-linux
|
||||
script:
|
||||
- export WINETEST_COLOR=1
|
||||
- wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL $INCLUDE_TESTS
|
||||
- wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.xml $INCLUDE_TESTS
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- winetest.xml
|
||||
reports:
|
||||
junit: winetest.xml
|
||||
|
||||
test-linux-32:
|
||||
extends: .wine-test
|
||||
|
@ -69,7 +75,13 @@ test-linux-32:
|
|||
- job: build-linux
|
||||
script:
|
||||
- export WINETEST_COLOR=1
|
||||
- wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -n $EXCLUDE_TESTS
|
||||
- wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.xml -n $EXCLUDE_TESTS
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- winetest.xml
|
||||
reports:
|
||||
junit: winetest.xml
|
||||
|
||||
test-win10-21h2-32:
|
||||
stage: test
|
||||
|
@ -84,13 +96,23 @@ test-win10-21h2-32:
|
|||
- win10-21h2
|
||||
script:
|
||||
- $WINETEST_ARGS = @(Get-Content ./winetest.args)
|
||||
- if ($WINETEST_ARGS.count -gt 0) { ./winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log }
|
||||
- |
|
||||
if ($WINETEST_ARGS.count -gt 0) {
|
||||
./winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.tmp @WINETEST_ARGS >winetest.log
|
||||
} else {
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><testsuites/>' >winetest.tmp
|
||||
echo $null >winetest.log
|
||||
}
|
||||
after_script:
|
||||
- Get-Content ./winetest.tmp | Set-Content -Encoding utf8 winetest.xml
|
||||
- Get-Content ./winetest.log
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- winetest.xml
|
||||
- winetest.log
|
||||
reports:
|
||||
junit: winetest.xml
|
||||
|
||||
test-win10-21h2-64:
|
||||
stage: test
|
||||
|
@ -105,13 +127,23 @@ test-win10-21h2-64:
|
|||
- win10-21h2
|
||||
script:
|
||||
- $WINETEST_ARGS = @(Get-Content ./winetest.args)
|
||||
- if ($WINETEST_ARGS.count -gt 0) { ./winetest64.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log }
|
||||
- |
|
||||
if ($WINETEST_ARGS.count -gt 0) {
|
||||
./winetest64.exe -q -q -o - -t gitlab -u $CI_JOB_URL -J winetest.tmp @WINETEST_ARGS >winetest.log
|
||||
} else {
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?><testsuites/>' >winetest.tmp
|
||||
echo $null >winetest.log
|
||||
}
|
||||
after_script:
|
||||
- Get-Content ./winetest.tmp | Set-Content -Encoding utf8 winetest.xml
|
||||
- Get-Content ./winetest.log
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- winetest.xml
|
||||
- winetest.log
|
||||
reports:
|
||||
junit: winetest.xml
|
||||
|
||||
debian-32:
|
||||
extends: .wine-test
|
||||
|
|
Loading…
Reference in a new issue