Skip to content

Commit a9eb2df

Browse files
committed
gitlab: default to not building the documentation
In d0f26e6 ("gitlab: force enable docs build in Fedora, Ubuntu, Debian") we made sure we can build the documents on more than one system. However we don't want to build documents all the time as it's a waste of cycles (and energy). So lets reduce the total amount of documentation we build while still keeping coverage of at least one build on each supported target. Fixes: a8a3abe ("gitlab: move docs and tools build across from Travis") Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210323165308.15244-23-alex.bennee@linaro.org>
1 parent 359a856 commit a9eb2df

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.gitlab-ci.d/crossbuilds.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
- mkdir build
77
- cd build
88
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH
9-
../configure --enable-werror $QEMU_CONFIGURE_OPTS --disable-user
10-
--target-list-exclude="arm-softmmu cris-softmmu i386-softmmu
11-
microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu
12-
ppc-softmmu sh4-softmmu xtensa-softmmu"
9+
../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
10+
--disable-user --target-list-exclude="arm-softmmu cris-softmmu
11+
i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu
12+
mips64-softmmu ppc-softmmu sh4-softmmu xtensa-softmmu"
1313
- make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
1414

1515
# Job to cross-build specific accelerators.
@@ -25,8 +25,8 @@
2525
- mkdir build
2626
- cd build
2727
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH
28-
../configure --enable-werror $QEMU_CONFIGURE_OPTS --disable-tools
29-
--enable-${ACCEL:-kvm} $ACCEL_CONFIGURE_OPTS
28+
../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
29+
--disable-tools --enable-${ACCEL:-kvm} $ACCEL_CONFIGURE_OPTS
3030
- make -j$(expr $(nproc) + 1) all check-build
3131

3232
.cross_user_build_job:
@@ -36,7 +36,8 @@
3636
- mkdir build
3737
- cd build
3838
- PKG_CONFIG_PATH=$PKG_CONFIG_PATH
39-
../configure --enable-werror $QEMU_CONFIGURE_OPTS --disable-system
39+
../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
40+
--disable-system
4041
- make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
4142

4243
cross-armel-system:

.gitlab-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ include:
2323
- cd build
2424
- if test -n "$TARGETS";
2525
then
26-
../configure --enable-werror $CONFIGURE_ARGS --target-list="$TARGETS" ;
26+
../configure --enable-werror --disable-docs $CONFIGURE_ARGS --target-list="$TARGETS" ;
2727
else
28-
../configure --enable-werror $CONFIGURE_ARGS ;
28+
../configure --enable-werror --disable-docs $CONFIGURE_ARGS ;
2929
fi || { cat config.log meson-logs/meson-log.txt && exit 1; }
3030
- if test -n "$LD_JOBS";
3131
then
@@ -119,7 +119,7 @@ build-system-ubuntu:
119119
job: amd64-ubuntu2004-container
120120
variables:
121121
IMAGE: ubuntu2004
122-
CONFIGURE_ARGS: --enable-fdt=system --enable-slirp=system
122+
CONFIGURE_ARGS: --enable-docs --enable-fdt=system --enable-slirp=system
123123
TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu
124124
moxie-softmmu microblazeel-softmmu mips64el-softmmu
125125
MAKE_CHECK_ARGS: check-build
@@ -607,7 +607,7 @@ tsan-build:
607607
job: amd64-ubuntu2004-container
608608
variables:
609609
IMAGE: ubuntu2004
610-
CONFIGURE_ARGS: --enable-tsan --cc=clang-10 --cxx=clang++-10 --disable-docs
610+
CONFIGURE_ARGS: --enable-tsan --cc=clang-10 --cxx=clang++-10
611611
--enable-trace-backends=ust --enable-fdt=system --enable-slirp=system
612612
TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user
613613
MAKE_CHECK_ARGS: bench V=1
@@ -619,7 +619,7 @@ build-deprecated:
619619
job: amd64-debian-user-cross-container
620620
variables:
621621
IMAGE: debian-all-test-cross
622-
CONFIGURE_ARGS: --disable-docs --disable-tools
622+
CONFIGURE_ARGS: --disable-tools
623623
MAKE_CHECK_ARGS: build-tcg
624624
TARGETS: ppc64abi32-linux-user lm32-softmmu unicore32-softmmu
625625
artifacts:

0 commit comments

Comments
 (0)