aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-12 08:58:58 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-29 08:52:25 -0300
commit2301ab23488b9db95eba40750f355a4439468b89 (patch)
treedf1c57c465dea764eee0badaf08e1c53a89ea70b /.gitlab-ci.yml
parentbuild: standardize parallel make arguments (diff)
downloadfirejail-2301ab23488b9db95eba40750f355a4439468b89.tar.gz
firejail-2301ab23488b9db95eba40750f355a4439468b89.tar.zst
firejail-2301ab23488b9db95eba40750f355a4439468b89.zip
build: standardize ./configure arguments
For consistency and to make it clearer where jobs differ (for example, to see where `--enable-analyzer` is used). Changes: * Always use --prefix=/usr and --enable-fatal-warnings (except in the Alpine job due to current warnings; see #6224) * Use the same argument order Note: mkdeb.sh and platform/rpm/mkrpm.sh already pass `--prefix=/usr` to ./configure.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 16 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8d4ed2dc5..71bb70b82 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,7 +22,8 @@ build_ubuntu_package:
22 | grep -Ev '^(Selecting|Preparing to unpack|Unpacking)' 22 | grep -Ev '^(Selecting|Preparing to unpack|Unpacking)'
23 - ./ci/printenv.sh 23 - ./ci/printenv.sh
24 - ./configure || (cat config.log; exit 1) 24 - ./configure || (cat config.log; exit 1)
25 - make deb 25 - make dist
26 - ./mkdeb.sh --enable-fatal-warnings
26 - dpkg -i ./*.deb 27 - dpkg -i ./*.deb
27 - make print-version 28 - make print-version
28 29
@@ -39,7 +40,8 @@ build_debian_package:
39 | grep -Ev '^(Selecting|Preparing to unpack|Unpacking)' 40 | grep -Ev '^(Selecting|Preparing to unpack|Unpacking)'
40 - ./ci/printenv.sh 41 - ./ci/printenv.sh
41 - ./configure || (cat config.log; exit 1) 42 - ./configure || (cat config.log; exit 1)
42 - make deb 43 - make dist
44 - ./mkdeb.sh --enable-fatal-warnings
43 - dpkg -i ./*.deb 45 - dpkg -i ./*.deb
44 - make print-version 46 - make print-version
45 47
@@ -57,7 +59,9 @@ build_no_apparmor:
57 - ./ci/printenv.sh 59 - ./ci/printenv.sh
58 - ./configure || (cat config.log; exit 1) 60 - ./configure || (cat config.log; exit 1)
59 - make dist 61 - make dist
60 - ./mkdeb.sh --disable-apparmor 62 - >
63 ./mkdeb.sh --enable-fatal-warnings
64 --disable-apparmor
61 - dpkg -i ./*.deb 65 - dpkg -i ./*.deb
62 - make print-version 66 - make print-version
63 - make print-version | grep -F 'AppArmor support is disabled' 67 - make print-version | grep -F 'AppArmor support is disabled'
@@ -70,7 +74,8 @@ build_redhat_package:
70 - dnf install -y rpm-build gcc make 74 - dnf install -y rpm-build gcc make
71 - ./ci/printenv.sh 75 - ./ci/printenv.sh
72 - ./configure || (cat config.log; exit 1) 76 - ./configure || (cat config.log; exit 1)
73 - make rpms 77 - make dist
78 - ./platform/rpm/mkrpm.sh --enable-fatal-warnings
74 - rpm -i ./*.rpm 79 - rpm -i ./*.rpm
75 - make print-version 80 - make print-version
76 81
@@ -82,7 +87,8 @@ build_fedora_package:
82 - dnf install -y rpm-build gcc make 87 - dnf install -y rpm-build gcc make
83 - ./ci/printenv.sh 88 - ./ci/printenv.sh
84 - ./configure || (cat config.log; exit 1) 89 - ./configure || (cat config.log; exit 1)
85 - make rpms 90 - make dist
91 - ./platform/rpm/mkrpm.sh --enable-fatal-warnings
86 - rpm -i ./*.rpm 92 - rpm -i ./*.rpm
87 - make print-version 93 - make print-version
88 94
@@ -94,7 +100,11 @@ build_src_package:
94 - apk upgrade 100 - apk upgrade
95 - apk add build-base linux-headers gawk 101 - apk add build-base linux-headers gawk
96 - ./ci/printenv.sh 102 - ./ci/printenv.sh
97 - ./configure --prefix=/usr || (cat config.log; exit 1) 103 # Note: Do not use ` --enable-fatal-warnings` because the build
104 # currently produces warnings on Alpine (see #6224).
105 - >
106 ./configure --prefix=/usr
107 || (cat config.log; exit 1)
98 - make 108 - make
99 - make install-strip 109 - make install-strip
100 - make print-version 110 - make print-version