diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-03-08 14:37:00 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-03-13 15:51:57 +0000 |
commit | f699a299ad9dd53fa38a525f8de4b3ea21f66b1c (patch) | |
tree | 51a56502faede8841722d0b6db83c919b050395c /.gitlab-ci | |
parent | b68dde91b8ce7eb3581774ac8a0b5a1047c1e25c (diff) | |
download | gtk+-f699a299ad9dd53fa38a525f8de4b3ea21f66b1c.tar.gz |
ci: Build API reference separately
We don't want to spend a lot of time on it just to check the build.
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x | .gitlab-ci/test-docker-autotools.sh | 22 | ||||
-rwxr-xr-x | .gitlab-ci/test-docker-meson.sh | 6 |
2 files changed, 19 insertions, 9 deletions
diff --git a/.gitlab-ci/test-docker-autotools.sh b/.gitlab-ci/test-docker-autotools.sh index d991842cf1..c685cc05a9 100755 --- a/.gitlab-ci/test-docker-autotools.sh +++ b/.gitlab-ci/test-docker-autotools.sh @@ -5,19 +5,31 @@ set -e mkdir -p _ccache export CCACHE_BASEDIR="$(pwd)" export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache" +export N_PROCS=$(($(nproc) - 1)) + +EXTRA_CONFIGURE_OPT="" + +# Only enable documentation when distchecking, since it's required +if [ -n "${DO_DISTCHECK-}" ]; then + EXTRA_CONFIGURE_OPTS="${EXTRA_CONFIGURE_OPTS} --enable-gtk-doc" +fi + +NOCONFIGURE=1 ./autogen.sh mkdir _build cd _build -../autogen.sh \ + +../configure \ --enable-cloudproviders \ --enable-broadway-backend \ --enable-wayland-backend \ --enable-x11-backend \ --enable-xinerama \ - --enable-gtk-doc -make -j8 + ${EXTRA_CONFIGURE_OPTS} + +make -j${N_PROCS} if [ -n "${DO_DISTCHECK-}" ]; then - make -j8 check SKIP_GDKTARGET="echo Not actually running tests for now" - make -j8 distcheck SKIP_GDKTARGET="echo Not actually running tests for now" + make -j${N_PROCS} check SKIP_GDKTARGET="echo Not actually running tests for now" + make -j${N_PROCS} distcheck SKIP_GDKTARGET="echo Not actually running tests for now" fi diff --git a/.gitlab-ci/test-docker-meson.sh b/.gitlab-ci/test-docker-meson.sh index df3ed90ef8..469af621f7 100755 --- a/.gitlab-ci/test-docker-meson.sh +++ b/.gitlab-ci/test-docker-meson.sh @@ -10,10 +10,10 @@ export PATH="${HOME}/.local/bin:${PATH}" python3 -m pip install --user meson==0.49.2 meson \ - -Dgtk_doc=true \ - -Dman=true \ -Dinstalled_tests=true \ -Dbroadway_backend=true \ + -Dx11_backend=true \ + -Dwayland_backend=true \ -Dxinerama=yes \ -Dprint_backends="file,lpr,test,cloudprint,cups" \ ${EXTRA_MESON_FLAGS:-} \ @@ -28,5 +28,3 @@ xvfb-run -a -s "-screen 0 1024x768x24" \ --print-errorlogs \ --suite=gtk+-3.0 \ --no-suite=gtk+-3.0:a11y - -ninja gail-libgail-util3-doc gdk3-doc gtk3-doc |