2022-09-08 17:03:22 +00:00
|
|
|
# CI script for testing Wine
|
|
|
|
|
|
|
|
.wine-test:
|
|
|
|
stage: test
|
|
|
|
image: $CI_REGISTRY/wine/wine:debian-bullseye
|
|
|
|
interruptible: true
|
|
|
|
variables:
|
2022-09-09 10:36:53 +00:00
|
|
|
GIT_STRATEGY: none
|
2022-09-08 17:03:22 +00:00
|
|
|
GECKO_VER: 2.47.3
|
2022-10-22 21:02:38 +00:00
|
|
|
MONO_VER: 7.4.0
|
2022-09-08 17:03:22 +00:00
|
|
|
cache:
|
|
|
|
- key: wine-gecko-$GECKO_VER
|
|
|
|
paths:
|
|
|
|
- wine-gecko-$GECKO_VER-x86.msi
|
|
|
|
- wine-gecko-$GECKO_VER-x86_64.msi
|
|
|
|
- key: wine-mono-$MONO_VER
|
|
|
|
paths:
|
|
|
|
- wine-mono-$MONO_VER-x86.msi
|
|
|
|
before_script:
|
|
|
|
- export BASEDIR=$PWD
|
|
|
|
- export PATH=$BASEDIR/usr/local/bin:$PATH
|
|
|
|
- export DISPLAY=:0
|
|
|
|
- export LC_ALL=C.UTF-8
|
|
|
|
- export WINEDEBUG=err-all,fixme-all
|
|
|
|
- |
|
|
|
|
cat >$HOME/xorg.conf << EOF
|
|
|
|
Section "Device"
|
|
|
|
Identifier "dummy"
|
|
|
|
Driver "dummy"
|
|
|
|
VideoRam 32768
|
|
|
|
EndSection
|
|
|
|
EOF
|
|
|
|
- echo 'exec /usr/bin/fvwm -f config -c "Style * MwmDecor" 2>/dev/null' >$HOME/.xinitrc
|
|
|
|
- startx -- -config $HOME/xorg.conf $DISPLAY &
|
|
|
|
- test -f wine-gecko-$GECKO_VER-x86.msi || curl -o wine-gecko-$GECKO_VER-x86.msi https://dl.winehq.org/wine/wine-gecko/$GECKO_VER/wine-gecko-$GECKO_VER-x86.msi
|
|
|
|
- test -f wine-gecko-$GECKO_VER-x86_64.msi || curl -o wine-gecko-$GECKO_VER-x86_64.msi https://dl.winehq.org/wine/wine-gecko/$GECKO_VER/wine-gecko-$GECKO_VER-x86_64.msi
|
|
|
|
- test -f wine-mono-$MONO_VER-x86.msi || curl -o wine-mono-$MONO_VER-x86.msi https://dl.winehq.org/wine/wine-mono/$MONO_VER/wine-mono-$MONO_VER-x86.msi
|
|
|
|
- mkdir -p $HOME/Documents $HOME/Desktop usr/local/share/wine/gecko usr/local/share/wine/mono
|
|
|
|
- ln -sf $BASEDIR/wine-gecko-$GECKO_VER-x86.msi $BASEDIR/wine-gecko-$GECKO_VER-x86_64.msi usr/local/share/wine/gecko
|
|
|
|
- ln -sf $BASEDIR/wine-mono-$MONO_VER-x86.msi usr/local/share/wine/mono
|
|
|
|
- pulseaudio --start --exit-idle-time=-1
|
|
|
|
- wine wineboot.exe -u
|
|
|
|
- wineserver -w
|
|
|
|
|
2022-09-27 14:36:20 +00:00
|
|
|
test-linux-32:
|
|
|
|
extends: .wine-test
|
|
|
|
variables:
|
|
|
|
EXCLUDE_TESTS: "d3d10core:d3d10core d3d11:d3d11 d3d8:device d3d8:visual d3d9:d3d9ex d3d9:device d3d9:visual"
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
|
|
needs:
|
|
|
|
- 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
|
|
|
|
|
2022-09-08 17:03:22 +00:00
|
|
|
debian-32:
|
|
|
|
extends: .wine-test
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
needs:
|
|
|
|
- job: build-daily-linux
|
|
|
|
script:
|
2022-09-13 11:01:38 +00:00
|
|
|
- wine usr/local/lib/wine/i386-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
|
2022-09-08 17:03:22 +00:00
|
|
|
|
|
|
|
debian-64:
|
|
|
|
extends: .wine-test
|
|
|
|
rules:
|
|
|
|
- if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
needs:
|
|
|
|
- job: build-daily-linux
|
|
|
|
script:
|
2022-09-13 11:01:38 +00:00
|
|
|
- wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
|