winewayland.drv: Do not commit buffers to unconfigured surfaces.
[wine.git] / tools / gitlab / test.yml
blob568addecb5c7a17021c52beb0463b7014b67ffbe
1 # CI script for testing Wine
3 .wine-test:
4   stage: test
5   image: $CI_REGISTRY/wine/wine:debian-bullseye
6   interruptible: true
7   variables:
8     GIT_STRATEGY: none
9     GECKO_VER: 2.47.4
10     MONO_VER: 8.0.0
11   cache:
12     - key: wine-gecko-$GECKO_VER
13       paths:
14         - wine-gecko-$GECKO_VER-x86.msi
15         - wine-gecko-$GECKO_VER-x86_64.msi
16     - key: wine-mono-$MONO_VER
17       paths:
18         - wine-mono-$MONO_VER-x86.msi
19   before_script:
20     - export BASEDIR=$PWD
21     - export PATH=$BASEDIR/usr/local/bin:$PATH
22     - export DISPLAY=:0
23     - export LC_ALL=C.UTF-8
24     - export WINEDEBUG=err-all,fixme-all
25     - |
26       cat >$HOME/xorg.conf << EOF
27       Section "Device"
28         Identifier "dummy"
29         Driver "dummy"
30         VideoRam 32768
31       EndSection
32       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
43     - wineserver -w
45 test-linux-64:
46   extends: .wine-test
47   variables:
48     INCLUDE_TESTS: "dinput"
49   rules:
50     - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
51   needs:
52     - job: build-linux
53   script:
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
57 test-linux-32:
58   extends: .wine-test
59   variables:
60     EXCLUDE_TESTS: "d3d10core:d3d10core d3d11:d3d11 d3d8:device d3d8:visual d3d9:d3d9ex d3d9:device d3d9:visual"
61   rules:
62     - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
63   needs:
64     - job: build-linux
65   script:
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
69 debian-32:
70   extends: .wine-test
71   rules:
72     - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
73   needs:
74     - job: build-daily-linux
75   script:
76     - wine usr/local/lib/wine/i386-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
78 debian-64:
79   extends: .wine-test
80   rules:
81     - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
82   needs:
83     - job: build-daily-linux
84   script:
85     - wine usr/local/lib/wine/x86_64-windows/winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
87 win10-21h2-32:
88   stage: test
89   interruptible: true
90   variables:
91     GIT_STRATEGY: none
92   rules:
93     - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
94   needs:
95     - job: build-winetest
96   tags:
97     - win10-21h2
98   script:
99     - ./winetest.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL
101 win10-21h2-64:
102   stage: test
103   interruptible: true
104   variables:
105     GIT_STRATEGY: none
106   rules:
107     - if: $CI_PIPELINE_SOURCE == 'trigger' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
108   needs:
109     - job: build-winetest
110   tags:
111     - win10-21h2
112   script:
113     - ./winetest64.exe -q -t gitlab-$CI_JOB_NAME -u $CI_JOB_URL