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>
This commit is contained in:
parent
49399806a0
commit
e630d2d0d0
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue