summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: ff4e58c812bfc0033475bc9f33011568c8dc6843 (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
image: fedora:rawhide

variables:
  DEPENDENCIES:
    gtk-doc
    gobject-introspection-devel
    gtk4-devel
    sassc
    libadwaita-devel
    systemd-devel
    gsound-devel
    libnotify-devel
    upower-devel
    meson
    redhat-rpm-config
    gcc
    glibc-devel
    git
  GIT_SUBMODULE_STRATEGY: recursive
  TEST_DEPS:
    dbus-daemon
    python3-gobject-base
    python3-dbus
  DEPENDENCIES_ABI_CHECK:
    libabigail
  LAST_ABI_BREAK: "cbc08c4f293664e681b1646e794e7cf62782c6cc"

build_stable:
  tags:
    - crun
  before_script:
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES $TEST_DEPS
  script:
    # Install newer python-dbusmock
    - git clone https://github.com/martinpitt/python-dbusmock.git
    - cd python-dbusmock
    - python3 setup.py build
    - python3 setup.py install
    - cd ..
    - meson . _build --prefix=/usr -Dgtk_doc=true -Dintrospection=true -Dsendto=true
    - ninja -C _build
    - ninja -C _build install
    - ninja -C _build test
    - .ci/fail_skipped_tests.py _build/meson-logs/testlog.junit.xml
    - 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)
  artifacts:
    when: always
    paths:
      - "${CI_PROJECT_DIR}/_build/meson-logs/"
      - "${CI_PROJECT_DIR}/_build/meson-dist"
      - "${CI_PROJECT_DIR}/_build/meson-private/dist-build/meson-logs/"