-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
67 lines (61 loc) · 1.46 KB
/
.gitlab-ci.yml
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
66
67
# Quick syntax check:
# python -c 'import sys, yaml; yaml.dump (yaml.safe_load (sys.stdin), sys.stdout)' <.gitlab-ci.yml
# If things don't seem to work, this can help:
# https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/ci/lint
.fedora_deps: &fedora_deps
before_script:
- dnf -y install $EXTRA_PACKAGES
file
findutils
gcc
make
gettext-devel
glib2-devel
gtk3-devel
libtool
libsecret-devel
libnma-devel
NetworkManager-libnm-devel
pkgconfig
# Disable fetching Git, run after the tarball is rolled
.dist: &dist
stage: test
dependencies:
- fedora40_dist
variables:
GIT_STRATEGY: none
.fedora_from_dist: &fedora_from_dist
<<: *fedora_deps
<<: *dist
script:
- tar xJf NetworkManager-openvpn-*.tar.xz
- cd NetworkManager-openvpn-*/
- ./configure $EXTRA_CONFIGURE_FLAGS
--enable-more-warnings=error
--disable-silent-rules
- make -j
- make -j check
- make -j install
- make -j uninstall
# Roll the distribution tarball
fedora40_dist:
<<: *fedora_deps
image: fedora:40
stage: build
script:
- dnf -y install
/usr/bin/autopoint
autoconf automake appstream
gtk4-devel
- sh autogen.sh
- make -j dist
artifacts:
paths:
- "*.xz"
# Test on a recent distro
fedora_latest_from_dist:
<<: *fedora_from_dist
variables:
EXTRA_PACKAGES: libnma-gtk4-devel
EXTRA_CONFIGURE_FLAGS: --with-gtk4
image: fedora:latest