wgl: drop misleading always true asserts
[mesa-waffle.git] / .gitlab-ci.yml
blob68b422e1838937b093f8084e264f1dda88a46e73
1 variables:
2   UPSTREAM_REPO: mesa/waffle
4 include:
5   - project: 'wayland/ci-templates'
6     ref: f69acac60d5dde0410124fd5674764600821b7a6
7     file: '/templates/debian.yml'
9 stages:
10   - container
11   - build
14 # When to automatically run the CI
15 .ci-run-policy:
16   retry:
17     max: 2
18     when:
19       - runner_system_failure
20   # Cancel CI run if a newer commit is pushed to the same branch
21   interruptible: true
24 # Debian 10 based x86 build image
25 x86_build:
26   stage: container
27   extends:
28     - .debian@container-ifnot-exists
29     - .ci-run-policy
30   variables:
31     DEBIAN_VERSION: buster-slim
32     REPO_SUFFIX: $CI_JOB_NAME
33     # no need to pull the whole repo to build the container image
34     GIT_STRATEGY: none
35     DEBIAN_TAG: &x86_build "2019-11-22"
36     DEBIAN_DEBS: >-
37       bash-completion
38       ca-certificates
39       cmake
40       docbook-xsl
41       docbook-xml
42       g++
43       gcc
44       libcmocka-dev
45       libegl1-mesa-dev
46       libgbm-dev
47       libgl1-mesa-dev
48       libudev-dev
49       libwayland-dev
50       libx11-dev
51       libxcb1-dev
52       meson
53       pkg-config
54       xauth
55       xsltproc
56       xvfb
57 .use-x86_build:
58   variables:
59     TAG: *x86_build
60   image: "$CI_REGISTRY_IMAGE/debian/x86_build:$TAG"
61   needs:
62     - x86_build
65 # BUILD
67 .build:
68   extends: .ci-run-policy
69   stage: build
70   variables:
71     GIT_DEPTH: 100
73 meson:
74   extends:
75     - .build
76     - .use-x86_build
77   script:
78     - bash .gitlab-ci/build-meson.sh x11
79     - bash .gitlab-ci/build-meson.sh wayland
80     - bash .gitlab-ci/build-meson.sh gbm
81     - bash .gitlab-ci/build-meson.sh surfaceless
82   artifacts:
83     when: on_failure
84     paths:
85       - _build/meson-logs/*.txt
87 cmake:
88   extends:
89     - .build
90     - .use-x86_build
91   script:
92     - cmake
93         -G Ninja
94         -S . -B _build
95         -DCMAKE_INSTALL_PREFIX=`pwd`/install
96         -DCMAKE_BUILD_TYPE=Debug
97         -Dwaffle_has_gbm=1
98         -Dwaffle_has_glx=1
99         -Dwaffle_has_x11_egl=1
100         -Dwaffle_has_wayland=1
101         -Dwaffle_build_manpages=1
102         -Dwaffle_build_htmldocs=1
103         -Dwaffle_build_examples=1
104     - ninja -C _build -j4
105     - ninja -C _build check
106     - ninja -C _build install