Debian Codegraph @

.gitlab-ci.yml

raw symbols SCIP
1 stages:
2 - build
3 - analyze
4 - test
5
6 .ubuntu-amd64-bionic:
7 image: registry.videolan.org/librist-ubuntu-bionic:20200501213126
8 stage: build
9 tags:
10 - docker
11 - amd64
12
13 .ubuntu-amd64-jammy:
14 image: registry.videolan.org/libplacebo-ubuntu-jammy:20230730213642
15 stage: build
16 tags:
17 - docker
18 - amd64
19
20 .debian-amd64-common:
21 image: registry.videolan.org/dav1d-debian-unstable:20200306210534
22 stage: build
23 tags:
24 - docker
25 - amd64
26
27 build-ubuntu:
28 extends: .ubuntu-amd64-bionic
29 tags:
30 - docker
31 - avx2
32 - amd64
33 script:
34 - meson build --buildtype release --werror
35 - ninja -C build
36
37 build-win64:
38 extends: .debian-amd64-common
39 script:
40 - meson build --buildtype release
41 --werror
42 --libdir lib
43 --cross-file common/ci/x86_64-w64-mingw32.meson
44 -Ddefault_library=both
45 -Dhave_mingw_pthreads=true
46 - ninja -C build
47 artifacts:
48 paths:
49 - build
50 expire_in: 24 hours
51
52 analyze-ubuntu:
53 stage: analyze
54 extends:
55 - .ubuntu-amd64-bionic
56 needs: ["build-ubuntu"]
57 script:
58 - meson build --buildtype release --werror -Dstatic_analyze=true
59 - ninja -C build analyze
60 dependencies: []
61
62 test-ubuntu:
63 stage: test
64 extends:
65 - .ubuntu-amd64-jammy
66 needs: ["build-ubuntu"]
67 # simple+multicast cases are environmentally flaky on the shared
68 # runner (UDP/IGMP timing); retry covers transient failures.
69 retry: 2
70 script:
71 # cmocka comes from subprojects/cmocka.wrap when the runner image
72 # does not ship libcmocka-dev; #215 used to slip silently because
73 # the meson check skipped srp_unit_test entirely.
74 - meson build --buildtype release -Db_sanitize=address,undefined
75 - cd build && meson test --print-errorlogs
76 dependencies:
77 - build-ubuntu
78 artifacts:
79 when: always
80 reports:
81 junit: build/meson-logs/testlog.junit.xml
82 paths:
83 - build/meson-logs/testlog.txt
84 - build/meson-logs/testlog.junit.xml
85
86 # Run the cross-compiled Windows binaries (with mbedTLS, matching the
87 # release configuration) under wine so the same meson test suite that
88 # gates Linux also gates Windows. Catches Windows-runtime regressions
89 # like #208 (winsock not initialised before rist_logging_set) and the
90 # SRP/AES code paths under #210 that pure cross-compile cannot detect.
91 # Does not catch real-Windows kernel behaviours that wine does not
92 # replicate (e.g. the #209 WSAECONNRESET-from-ICMP-unreach interaction);
93 # a native Windows runner would be needed for that and is not available
94 # in VideoLAN's shared CI.
95 #
96 # TODO: allow_failure is set because wine on the shared CI runner is too
97 # slow to complete the send/receive tests within meson's 30s per-test
98 # budget — the same suite passes natively on Linux (test-ubuntu) and the
99 # logs show no crashes/asserts, only TIMEOUTs. Either bump the per-test
100 # timeout multiplier here or move test-win64 to a faster runner, then
101 # drop allow_failure.
102 test-win64:
103 stage: test
104 extends: .debian-amd64-common
105 needs: ["build-win64"]
106 allow_failure: true
107 retry: 2
108 dependencies:
109 - build-win64
110 script:
111 - wineserver -p && wine wineboot
112 - cd build && meson test --print-errorlogs --no-rebuild
113 artifacts:
114 when: on_failure
115 paths:
116 - build/meson-logs/testlog.txt
117