summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: bf446a4ded501a975a3df84e5879038f869b610a (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
# 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
    intltool
  LAST_ABI_BREAK: "92b1faa10bb7431694b799733c5ff672d2f62a70"

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 --suppr .ci/gbt.suppr ${LAST_ABI_BREAK} $(git rev-parse HEAD)