From e630d2d0d0ad9a1611864f57ffdd0615a3bf4328 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 2 Dec 2020 22:30:34 +0200 Subject: [PATCH] gitlab-ci.yml: Have a doc job This helps identify if we have actually have a build issue or if we have a documentation build failure. Notifications sent out are specifying the name of the build, making things much easier to figure out what actually failed. Uses another job w/o the need to run the tests (again). Signed-off-by: Marius Vlad --- .gitlab-ci.yml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 92f665b0..af506e95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -80,13 +80,37 @@ container_prep: - build-*/weston-virtme - prefix-* +.build-native-meson-no-test: + extends: .build-native + tags: + - kvm + script: + - export PATH=~/.local/bin:$PATH + - cd "$BUILDDIR" + - meson --prefix="$PREFIX" ${MESON_OPTIONS} .. + - ninja -k0 + - ninja install + - ninja clean + artifacts: + name: weston-$CI_COMMIT_SHA + when: always + paths: + - build-*/meson-logs + - prefix-* + build-native-meson-default-options: variables: MESON_OPTIONS: > -Dwerror=true - -Ddoc=true extends: .build-native-meson +build-docs: + variables: + MESON_OPTIONS: > + -Dwerror=true + -Ddoc=true + extends: .build-native-meson-no-test + build-native-meson-no-gl-renderer: variables: MESON_OPTIONS: > @@ -100,10 +124,10 @@ build-native-meson-no-gl-renderer: preview-docs: stage: pages script: - - mv prefix-weston-build-native-meson-default-options/share/doc/weston Documentation + - mv prefix-weston-build-docs/share/doc/weston Documentation - rm -rf build-* prefix-* dependencies: - - build-native-meson-default-options + - build-docs artifacts: expose_as: 'Documentation preview' paths: @@ -112,9 +136,9 @@ preview-docs: pages: stage: pages dependencies: - - build-native-meson-default-options + - build-docs script: - - export PREFIX=$(pwd)/prefix-weston-build-native-meson-default-options + - export PREFIX=$(pwd)/prefix-weston-build-docs - mkdir public - cp -R $PREFIX/share/doc/weston/* public/ artifacts: