From 8774707b1e32aede2c906b0358159790d09928a1 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 22 Jun 2020 11:10:29 +0200 Subject: [PATCH] ci: test docs for non-master builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This ensures that we test on CI before merge-requests gets merged. Reviewed-by: Michel Dänzer Part-of: --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ca9a22358c3..16bcc9ab10a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,13 +24,16 @@ stages: - virgl - success -pages: +.docs-base: image: alpine stage: deploy script: - apk --no-cache add py3-pip - pip3 install sphinx sphinx_rtd_theme - sphinx-build -b html docs public + +pages: + extends: .docs-base artifacts: paths: - public @@ -41,6 +44,16 @@ pages: - docs/**/* - .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 .ci-run-policy: rules: -- 2.30.2