mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-22 20:38:13 +02:00
gitlab-ci: Enable gitlab page for publishing documentation
While adding pages, remove CI_JOB_ID and CI_JOB_SHA from PREFIX, as this apparently is not needed. Make build-native-meson a dependency for the pages stage. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
08e1d42a36
commit
0a13641ff8
1 changed files with 17 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ include:
|
||||||
stages:
|
stages:
|
||||||
- container_prep
|
- container_prep
|
||||||
- build
|
- build
|
||||||
|
- pages
|
||||||
|
|
||||||
|
|
||||||
container_prep:
|
container_prep:
|
||||||
|
|
@ -41,7 +42,7 @@ container_prep:
|
||||||
- make install
|
- make install
|
||||||
- cd ../../
|
- cd ../../
|
||||||
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
- export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
|
||||||
- export BUILD_ID="weston-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID"
|
- export BUILD_ID="weston-$CI_JOB_NAME"
|
||||||
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
- export PREFIX="$(pwd)/prefix-$BUILD_ID"
|
||||||
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
- export BUILDDIR="$(pwd)/build-$BUILD_ID"
|
||||||
- mkdir "$BUILDDIR" "$PREFIX"
|
- mkdir "$BUILDDIR" "$PREFIX"
|
||||||
|
|
@ -57,8 +58,22 @@ build-native-meson:
|
||||||
- ninja test
|
- ninja test
|
||||||
- ninja clean
|
- ninja clean
|
||||||
artifacts:
|
artifacts:
|
||||||
name: weston-$CI_COMMIT_SHA-$CI_JOB_ID
|
name: weston-$CI_COMMIT_SHA
|
||||||
when: always
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- build-*/meson-logs
|
- build-*/meson-logs
|
||||||
- prefix-*
|
- prefix-*
|
||||||
|
|
||||||
|
pages:
|
||||||
|
stage: pages
|
||||||
|
dependencies:
|
||||||
|
- build-native-meson
|
||||||
|
script:
|
||||||
|
- export PREFIX=$(pwd)/prefix-weston-build-native-meson
|
||||||
|
- mkdir public
|
||||||
|
- cp -R $PREFIX/share/weston-doc/* public/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue