aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 45f7388ce83a42c12e821711043114e8fc3ae278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

include:
  - project: 'freedesktop/ci-templates'
    ref: 59de540b620c45739871d1a073d76d5521989d11
    file: '/templates/debian.yml'

stages:
  - containers-build
  - test

.debian:
  variables:
    FDO_UPSTREAM_REPO: wayland/wayland-protocols
    FDO_DISTRIBUTION_VERSION: bullseye
    FDO_DISTRIBUTION_PACKAGES: 'build-essential automake autoconf libtool pkg-config libwayland-dev meson'
    FDO_DISTRIBUTION_TAG: '2021-03-24.0'

container_build:
  extends:
    - .debian
    - .fdo.container-build@debian
  stage: containers-build
  variables:
    GIT_STRATEGY: none

test-meson:
  stage: test
  extends:
    - .debian
    - .fdo.distribution-image@debian
  script:
    - meson build
    - ninja -C build
    - meson test -C build
    - ninja -C build install

test-autotools:
  stage: test
  extends:
    - .debian
    - .fdo.distribution-image@debian
  script:
    - ./autogen.sh
    - make check