]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
ci-build.sh: Add a autotools ci_variant without the docs archive
authorAlex Richardson <arichardson@FreeBSD.org>
Tue, 9 Aug 2022 17:40:58 +0000 (17:40 +0000)
committerSimon McVittie <smcv@collabora.com>
Wed, 10 Aug 2022 11:18:20 +0000 (11:18 +0000)
This is needed to add autotools support to the FreeBSD CI since we don't
include all the packages needed to build dbus-docs.tar.xz.

tools/ci-build.sh

index c5915fac484cfe5758523a9db279900d3fe5aa8a..0e72b2d9ccc35a4a8d8992e956f9fc4da235d933 100755 (executable)
@@ -127,7 +127,7 @@ init_wine() {
 : "${ci_test_fatal:=yes}"
 
 # ci_variant:
-# One of debug, reduced, legacy, production
+# One of debug, reduced, legacy, production, production-no-upload-docs
 : "${ci_variant:=production}"
 
 # ci_runtime:
@@ -376,9 +376,11 @@ case "$ci_buildsys" in
         ${make} install DESTDIR=$(pwd)/DESTDIR
         ( cd DESTDIR && find . -ls )
 
-        ${make} -C doc dbus-docs.tar.xz
-        tar -C $(pwd)/DESTDIR -xf doc/dbus-docs.tar.xz
-        ( cd DESTDIR/dbus-docs && find . -ls )
+        if [ "$ci_variant" != "production-no-upload-docs" ]; then
+            ${make} -C doc dbus-docs.tar.xz
+            tar -C $(pwd)/DESTDIR -xf doc/dbus-docs.tar.xz
+            ( cd DESTDIR/dbus-docs && find . -ls )
+        fi
 
         if [ "$ci_sudo" = yes ] && [ "$ci_test" = yes ]; then
             sudo ${make} install