forked from jamiepg1/network-manager-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
106 lines (98 loc) · 2.4 KB
/
.gitlab-ci.yml
File metadata and controls
106 lines (98 loc) · 2.4 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Quick syntax check:
# python -c 'import sys, yaml; yaml.dump (yaml.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
stages:
- build
- test
- triage
.fedora_deps: &fedora_deps
before_script:
- dnf -y install
file
findutils
gcc
make
gettext-devel
glib2-devel
gtk3-devel
intltool
libtool
libsecret-devel
libnma-devel
NetworkManager-libnm-devel
pkgconfig
# Disable fetching Git, run after the tarball is rolled
.dist: &dist
stage: test
dependencies:
- fedora_dist
variables:
GIT_STRATEGY: none
# Roll the distribution tarball
fedora_dist:
<<: *fedora_deps
image: fedora:36
stage: build
script:
- dnf -y install
/usr/bin/autopoint
autoconf automake make
NetworkManager-libnm-devel
libnma-gtk4-devel
xorg-x11-server-Xvfb xorg-x11-xinit
- sh autogen.sh
# The Xvfb dance below is because of
# https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4415
- xinit /bin/sh -c 'make -j distcheck && touch .success' -- /usr/bin/Xvfb :5
- test -e .success
artifacts:
paths:
- "*.xz"
# This one has libnm-glib
fedora28_from_dist:
<<: *dist
<<: *fedora_deps
script:
- tar xJf NetworkManager-openvpn-*.tar.xz
- cd NetworkManager-openvpn-*/
# Sometimes the CI builder clocks are skewed.
# Make sure the dst files are not from future.
- find |xargs touch
- dnf -y install
NetworkManager-devel
NetworkManager-glib-devel
libnm-gtk-devel
- ./configure
--disable-silent-rules
--with-libnm-glib
- make -j
- make -j check
- make -j install
- make -j uninstall
image: fedora:28
# A regular build on recent Fedora
fedora_from_dist:
<<: *dist
<<: *fedora_deps
script:
- tar xJf NetworkManager-openvpn-*.tar.xz
- cd NetworkManager-openvpn-*/
# Sometimes the CI builder clocks are skewed.
# Make sure the dst files are not from future.
- find |xargs touch
- ./configure
--disable-silent-rules
- make -j
- make -j check
- make -j install
- make -j uninstall
image: fedora:latest
triage:issues:
stage: triage
image: ruby:2.7
script:
- gem install gitlab-triage
- gitlab-triage -d --token $API_TOKEN --source-id $SOURCE_ID
only:
- schedules