ci: test docs for non-master builds

This ensures that we test on CI before merge-requests gets merged.

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
This commit is contained in:
Erik Faye-Lund 2020-06-22 11:10:29 +02:00 committed by Marge Bot
parent 24fe9f43e5
commit 8774707b1e
1 changed files with 14 additions and 1 deletions

View File

@ -24,13 +24,16 @@ stages:
- virgl - virgl
- success - success
pages: .docs-base:
image: alpine image: alpine
stage: deploy stage: deploy
script: script:
- apk --no-cache add py3-pip - apk --no-cache add py3-pip
- pip3 install sphinx sphinx_rtd_theme - pip3 install sphinx sphinx_rtd_theme
- sphinx-build -b html docs public - sphinx-build -b html docs public
pages:
extends: .docs-base
artifacts: artifacts:
paths: paths:
- public - public
@ -41,6 +44,16 @@ pages:
- docs/**/* - docs/**/*
- .gitlab-ci.yml - .gitlab-ci.yml
test-docs:
extends: .docs-base
except:
refs:
- master@mesa/mesa
only:
changes:
- docs/**/*
- .gitlab-ci.yml
# When to automatically run the CI # When to automatically run the CI
.ci-run-policy: .ci-run-policy:
rules: rules: