Debian Codegraph @

docs/gitlab-ci.yml

raw
1 include:
2 - local: 'docs/gitlab-ci-inc.yml'
3
4 deploy-docs:
5 extends: .docs-base
6 stage: deploy
7 pages: true
8 rules:
9 - !reference [.common-rules, rules]
10 - !reference [.no_scheduled_pipelines-rules, rules]
11 # post-merge pipeline
12 - if: '$CI_PROJECT_NAMESPACE == "mesa" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_COMMIT_BRANCH'
13 changes: &docs-or-ci
14 - docs/**/*
15 - .gitlab-ci.yml
16 - src/util/format/**/*
17 # All the following source files documentation is extracted from
18 # git grep -h ":file: src/" -- docs | sort | uniq
19 - src/compiler/nir/nir.h
20 - src/intel/isl/**/*
21 - src/vulkan/runtime/**/*
22 when: always
23
24 test-docs:
25 extends: .docs-base
26 # Cancel job if a newer commit is pushed to the same branch
27 interruptible: true
28 stage: deploy
29 rules:
30 - !reference [.common-rules, rules]
31 # merge pipeline
32 - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $GITLAB_USER_LOGIN == "marge-bot"'
33 when: on_success
34 # pre-merge pipeline
35 - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
36 when: manual
37
38 linkcheck-docs:
39 extends: .docs-base
40 # Cancel job if a newer commit is pushed to the same branch
41 interruptible: true
42 stage: deploy
43 rules:
44 - !reference [.common-rules, rules]
45 - !reference [.scheduled_pipeline-rules, rules]
46 # pre-merge pipeline
47 - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $GITLAB_USER_LOGIN != "marge-bot"'
48 when: manual
49 allow_failure: true
50 script:
51 - |
52 if ! sphinx-build -W -b linkcheck docs public
53 then
54 echo "Summary:"
55 cat public/output.txt
56 exit 1
57 fi