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 <marius.vlad@collabora.com>
dev
Marius Vlad 4 years ago
parent 49399806a0
commit e630d2d0d0
  1. 34
      .gitlab-ci.yml

@ -80,13 +80,37 @@ container_prep:
- build-*/weston-virtme - build-*/weston-virtme
- prefix-* - 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: build-native-meson-default-options:
variables: variables:
MESON_OPTIONS: > MESON_OPTIONS: >
-Dwerror=true -Dwerror=true
-Ddoc=true
extends: .build-native-meson 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: build-native-meson-no-gl-renderer:
variables: variables:
MESON_OPTIONS: > MESON_OPTIONS: >
@ -100,10 +124,10 @@ build-native-meson-no-gl-renderer:
preview-docs: preview-docs:
stage: pages stage: pages
script: 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-* - rm -rf build-* prefix-*
dependencies: dependencies:
- build-native-meson-default-options - build-docs
artifacts: artifacts:
expose_as: 'Documentation preview' expose_as: 'Documentation preview'
paths: paths:
@ -112,9 +136,9 @@ preview-docs:
pages: pages:
stage: pages stage: pages
dependencies: dependencies:
- build-native-meson-default-options - build-docs
script: script:
- export PREFIX=$(pwd)/prefix-weston-build-native-meson-default-options - export PREFIX=$(pwd)/prefix-weston-build-docs
- mkdir public - mkdir public
- cp -R $PREFIX/share/doc/weston/* public/ - cp -R $PREFIX/share/doc/weston/* public/
artifacts: artifacts:

Loading…
Cancel
Save