-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
66 lines (60 loc) · 1.37 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
# 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-vpnc/-/ci/lint
.fedora_deps: &fedora_deps
before_script:
- dnf -y install
file
findutils
gcc
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:
- fedora28_dist
variables:
GIT_STRATEGY: none
.fedora_from_dist: &fedora_from_dist
<<: *fedora_deps
<<: *dist
script:
- dnf -y install make
- tar xJf NetworkManager-vpnc-*.tar.xz
- cd NetworkManager-vpnc-*/
- ./configure
--disable-silent-rules
--without-libnm-glib
- make -j
- make -j check
- make -j install
- make -j uninstall
# Roll the distribution tarball
fedora28_dist:
<<: *fedora_deps
image: fedora:28
stage: build
script:
- dnf -y install
/usr/bin/autopoint
autoconf automake make
NetworkManager-devel
NetworkManager-glib-devel
libnm-gtk-devel
- sh autogen.sh
- make -j dist
artifacts:
paths:
- "*.xz"
fedora_from_dist:
<<: *fedora_from_dist
image: fedora:latest