summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 4a9cc9e6ab1d954be423fd8404fa0f0f2e1eb3e3 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.artifacts-meson: &artifacts-meson
  when: always
  paths:
   - _build/meson-logs

.artifacts-autotools: &artifacts-autotools
  when: always
  paths:
    - _build/*.log

.meson-build: &meson-build
  - meson _build -D auto_features=enabled
  - ninja -C _build

.autotools-build: &autotools-build
  - mkdir _build
  - cd _build
  - ../autogen.sh
  - make

latest-meson:
  stage: build
  image: base/archlinux:latest
  artifacts: *artifacts-meson
  before_script:
    - pacman -Syu --noconfirm --needed
        base-devel
        meson
        libdrm
        mesa
        gstreamer
        gst-plugins-base
  script: *meson-build

latest-autotools:
  stage: build
  image: base/archlinux:latest
  artifacts: *artifacts-autotools
  before_script:
    - pacman -Syu --noconfirm --needed
        base-devel
        libdrm
        mesa
        gstreamer
        gst-plugins-base
        git # autogen.sh depends on git
  script: *autotools-build

oldest-meson:
  stage: build
  image: debian:stable
  artifacts: *artifacts-meson
  before_script:
    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
        'path-exclude=/usr/share/doc/*'
        'path-exclude=/usr/share/man/*'
    - printf > /usr/sbin/policy-rc.d "%s\n"
        '#!/bin/sh'
        'exit 101'
    - chmod +x /usr/sbin/policy-rc.d
    - apt-get update
    - apt-get -y --no-install-recommends install
        build-essential
        pkg-config
        libdrm-dev
        libgbm-dev
        libegl1-mesa-dev
        libgles2-mesa-dev
        libgstreamer1.0-dev
        libgstreamer-plugins-base1.0-dev
        gstreamer1.0-plugins-base
        gstreamer1.0-plugins-base-apps
        ninja-build
        python3 python3-pip
    - pip3 install wheel setuptools
    - pip3 install meson==0.47
  script: *meson-build

oldest-autotools:
  stage: build
  image: debian:stable
  artifacts: *artifacts-autotools
  before_script:
    - printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
        'path-exclude=/usr/share/doc/*'
        'path-exclude=/usr/share/man/*'
    - printf > /usr/sbin/policy-rc.d "%s\n"
        '#!/bin/sh'
        'exit 101'
    - chmod +x /usr/sbin/policy-rc.d
    - apt-get update
    - apt-get -y --no-install-recommends install
        build-essential
        automake
        autoconf
        libtool
        pkg-config
        libdrm-dev
        libgbm-dev
        libegl1-mesa-dev
        libgles2-mesa-dev
        libgstreamer1.0-dev
        libgstreamer-plugins-base1.0-dev
        gstreamer1.0-plugins-base
        gstreamer1.0-plugins-base-apps
        git # autogen.sh depends on git
  script: *autotools-build