.gitlab-ci.yml 2.87 KB
Newer Older
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
1
2
3
4
5
6
7
8
9
10
11
variables:
  MAKEFLAGS: "-j10"
  VERBOSE: 1

.arch-test:
  image: archlinux/base
  before_script:
    - >
      pacman -Syu --needed --noconfirm
      base-devel git
      gpgme libarchive curl
Allan McRae's avatar
Allan McRae committed
12
13
14
      python
      fakeroot fakechroot
      meson
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
15

Allan McRae's avatar
Allan McRae committed
16
arch:
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
17
18
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
19
20
    - meson build
    - ninja -C build
21
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
22

Allan McRae's avatar
Allan McRae committed
23
arch-debug:
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
24
25
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
26
27
28
    - meson --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
29

Allan McRae's avatar
Allan McRae committed
30
arch-docs:
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
31
32
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
33
34
    - pacman -Syu --needed --noconfirm asciidoc
    - meson -Ddoc=enabled build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
35
    - ninja -C build
Allan McRae's avatar
Allan McRae committed
36
37
38
39
40
41
42
43
44

arch-autoconf:
  extends: .arch-test
  script:
    - pacman -Syu --needed --noconfirm autoconf-archive
    - autoreconf -i
    - ./configure --enable-warningflags --disable-doc
    - make
    - fakechroot make check
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
45
46
47
48

arch-distcheck:
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
49
    - pacman -Syu --needed --noconfirm autoconf-archive asciidoc
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
50
51
52
53
    - autoreconf -i
    - ./configure --enable-warningflags
    - fakechroot make distcheck

Allan McRae's avatar
Allan McRae committed
54
55
56
57
58
59
60
61
arch-clang:
  extends: .arch-test
  script:
    - pacman -Syu --needed --noconfirm clang
    - CC=clang meson build
    - ninja -C build
    - fakechroot meson test -C build

Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
62
63
64
arch-valgrind:
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
65
    - pacman -Syu --needed --noconfirm autoconf-archive valgrind
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
66
    - autoreconf -i
Allan McRae's avatar
Allan McRae committed
67
    - ./configure --enable-warningflags --disable-doc
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
68
69
70
    - make
    - fakechroot make PY_LOG_FLAGS=--valgrind check

Allan McRae's avatar
Allan McRae committed
71
72
73
74
75
76
77
arch-nettle:
  extends: .arch-test
  script:
    - meson -Dcrypto=nettle --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build

Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
78
79
80
arch-no-gpg:
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
81
82
83
    - meson -Dgpgme=disabled --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
84
85
86
87

arch-no-curl:
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
88
89
90
    - meson -Dcurl=disabled --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
91
92
93
94

arch-no-nls:
  extends: .arch-test
  script:
Allan McRae's avatar
Allan McRae committed
95
96
97
    - meson -Di18n=false --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
98

Allan McRae's avatar
Allan McRae committed
99
100
debian:
  image: debian:bullseye
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
101
102
103
104
  before_script:
    - apt update
    - >
      apt -y install --no-install-recommends
Allan McRae's avatar
Allan McRae committed
105
      git pkg-config meson gcc libtool
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
106
      libgpgme-dev libarchive-dev libcurl4-openssl-dev libssl-dev curl
Allan McRae's avatar
Allan McRae committed
107
108
      gettext python3 python3-setuptools dash gawk ca-certificates
      fakeroot fakechroot
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
109
  script:
Allan McRae's avatar
Allan McRae committed
110
111
112
    - meson --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
113
114
115
116
117
118
119

fedora:
  image: fedora
  before_script:
    - >
      dnf -y install
      git findutils patch sed
Allan McRae's avatar
Allan McRae committed
120
      meson gcc libtool
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
121
122
      gpgme-devel libarchive-devel libcurl-devel openssl-devel gettext-devel
      asciidoc python3 dash gawk
Allan McRae's avatar
Allan McRae committed
123
      fakeroot fakechroot
Sven-Hendrik Haase's avatar
Add CI  
Sven-Hendrik Haase committed
124
125
      perl-Module-Load-Conditional
  script:
Allan McRae's avatar
Allan McRae committed
126
127
128
    - meson --buildtype=debug build
    - ninja -C build
    - fakechroot meson test -C build