summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: f1eba76a00b2d280427c4d49cb87791fc2261435 (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
stages:
  - build

variables:
  FEDORA_DEPENDENCIES:
    gawk
    gettext-devel
    glib2-devel
    gobject-introspection-devel
    gtk-doc
    perl
    texinfo
    texinfo-tex
  FEDORA_DEPENDENCIES_ABI_CHECK:
    libabigail
    intltool
  LAST_ABI_BREAK: "abccaf488a929de1e95e6a748485575dec52c998"
  UBUNTU_DEPENDENCIES:
    autoconf
    automake
    autopoint
    gettext
    glib2.0
    gtk-doc-tools
    libgirepository1.0-dev
    libtool
    make
    texinfo
    texlive

build-fedora:
  image: fedora:latest
  stage: build
  except:
    - tags
  before_script:
    - dnf update -y --nogpgcheck
    - dnf -y install --nogpgcheck $FEDORA_DEPENDENCIES
  script:
    - mkdir _build
    - cd _build
    - ../autogen.sh --disable-dependency-tracking
    - make
    - make install
    - make distcheck
    - cd ..
    - curl https://gitlab.freedesktop.org/hadess/check-abi/-/raw/main/contrib/check-abi-fedora.sh | bash
    - dnf install -y $FEDORA_DEPENDENCIES_ABI_CHECK
    - check-abi ${LAST_ABI_BREAK} $(git rev-parse HEAD)

build-ubuntu:
  image: ubuntu:latest
  stage: build
  except:
    - tags
  before_script:
    - apt-get update
    - apt-get install -y $UBUNTU_DEPENDENCIES
  script:
    - mkdir _build
    - cd _build
    - ../autogen.sh
    - make
    - make install
    - make distcheck