summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 0ea240a016d63030cce1b38f53128e90be73888a (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
# See https://sourceware.org/bugzilla/show_bug.cgi?id=27267
image: fedora:33

variables:
  DEPENDENCIES:
    gtk-doc
    gobject-introspection-devel
    gtk3-devel
    systemd-devel
    libcanberra-devel
    libnotify-devel
    meson
    redhat-rpm-config
    gcc
    glibc-devel
    git
  GIT_SUBMODULE_STRATEGY: recursive
  TEST_DEPS:
    python3-dbus
  DEPENDENCIES_ABI_CHECK:
    libabigail
  LAST_ABI_BREAK: "7cc6250695ca7c7f326f0dd1dcbabc0061123b6b"

build_stable:
  before_script:
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES
  script:
    - meson . _build --prefix=/usr
    - ninja -C _build
    - ninja -C _build install
    # Install newer python-dbusmock
    - git clone https://github.com/hadess/python-dbusmock.git
    - cd python-dbusmock
    - git checkout -b wip/hadess/bluez-pair origin/wip/hadess/bluez-pair
    - python3 setup.py build
    - python3 setup.py install
    - cd ..
    - dnf install -y $TEST_DEPS
    - ninja -C _build test
    - ninja -C _build dist
    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
    - dnf install -y $DEPENDENCIES_ABI_CHECK
    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)