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 LP_NUM_THREADS=4
25 - export WINEDEBUG=err-all,fixme-all
27 cat >$HOME/xorg.conf << EOF
34 - echo 'exec /usr/bin/fvwm -f config -c "Style * MwmDecor" -c "Style * UsePPosition" 2>/dev/null' >$HOME/.xinitrc
35 - startx -- -config $HOME/xorg.conf $DISPLAY &
36 - 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
37 - 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
38 - 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
39 - mkdir -p $HOME/Documents $HOME/Desktop usr/local/share/wine/gecko usr/local/share/wine/mono
40 - ln -sf $BASEDIR/wine-gecko-$GECKO_VER-x86.msi $BASEDIR/wine-gecko-$GECKO_VER-x86_64.msi usr/local/share/wine/gecko
41 - ln -sf $BASEDIR/wine-mono-$MONO_VER-x86.msi usr/local/share/wine/mono
42 - pulseaudio --start --exit-idle-time=-1
43 - wine wineboot.exe -u
49 INCLUDE_TESTS: "dinput"
51 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
55 - export WINETEST_COLOR=1
56 - wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL $INCLUDE_TESTS
61 EXCLUDE_TESTS: "d3d11:d3d11 d3d9:d3d9ex d3d9:visual"
63 - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
67 - export WINETEST_COLOR=1
68 - wine usr/local/lib/wine/i386-windows/winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL -n $EXCLUDE_TESTS
73 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
75 - job: build-daily-linux
77 - wine usr/local/lib/wine/i386-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
82 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
84 - job: build-daily-linux
86 - wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
94 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
100 - ./winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
108 - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
110 - job: build-winetest
114 - ./winetest64.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL