1 # CI script for testing Wine
5 image: $CI_REGISTRY/wine/wine:debian-bookworm
12 - key: wine-gecko-$GECKO_VER
14 - wine-gecko-$GECKO_VER-x86.msi
15 - wine-gecko-$GECKO_VER-x86_64.msi
16 - key: wine-mono-$MONO_VER
18 - wine-mono-$MONO_VER-x86.msi
21 - export PATH=$BASEDIR/usr/local/bin:$PATH
23 - export LC_ALL=C.UTF-8
24 - export WINEDEBUG=err-all,fixme-all
26 cat >$HOME/xorg.conf << EOF
33 - echo 'exec /usr/bin/fvwm -f config -c "Style * MwmDecor" -c "Style * UsePPosition" 2>/dev/null' >$HOME/.xinitrc
34 - startx -- -config $HOME/xorg.conf $DISPLAY &
35 - 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
36 - 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
37 - 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
38 - mkdir -p $HOME/Documents $HOME/Desktop usr/local/share/wine/gecko usr/local/share/wine/mono
39 - ln -sf $BASEDIR/wine-gecko-$GECKO_VER-x86.msi $BASEDIR/wine-gecko-$GECKO_VER-x86_64.msi usr/local/share/wine/gecko
40 - ln -sf $BASEDIR/wine-mono-$MONO_VER-x86.msi usr/local/share/wine/mono
41 - pulseaudio --start --exit-idle-time=-1
42 - wine wineboot.exe -u
48 INCLUDE_TESTS: "dinput"
50 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
54 - export WINETEST_COLOR=1
55 - wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL $INCLUDE_TESTS
60 EXCLUDE_TESTS: "d3d10core:d3d10core d3d11:d3d11 d3d8:visual d3d9:d3d9ex d3d9:visual"
62 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
66 - export WINETEST_COLOR=1
67 - wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -n $EXCLUDE_TESTS
72 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
74 - job: build-daily-linux
76 - wine usr/local/lib/wine/i386-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
81 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
83 - job: build-daily-linux
85 - wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
93 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
99 - ./winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
107 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
109 - job: build-winetest
113 - ./winetest64.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL