Always build dev docs
This commit is contained in:
parent
bc36a1e9d0
commit
8d3965dcff
1 changed files with 5 additions and 12 deletions
|
|
@ -176,7 +176,10 @@ build:
|
|||
|
||||
# Only runs when a .py file is edited unless the commit branch is V3
|
||||
build-docs:
|
||||
extends: .python
|
||||
extends:
|
||||
- .python
|
||||
# Always build docs
|
||||
- .rules_common
|
||||
stage: build
|
||||
script:
|
||||
- |
|
||||
|
|
@ -200,17 +203,7 @@ build-docs:
|
|||
environment:
|
||||
name: review/$CI_COMMIT_REF_SLUG
|
||||
url: https://$CI_PROJECT_ROOT_NAMESPACE.gitlab.io/-/openflexure-microscope-server/-/jobs/$JOB_ID/artifacts/apidocs/index.html
|
||||
rules:
|
||||
# So that 'pages' job at the end always works
|
||||
# Add new rule first as the rules defined in .python
|
||||
# end in when: never, so if this new rule goes after that
|
||||
# clause, it will never be reached as rules are
|
||||
# evaluated top to bottom
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
# This syntax means we append the rules from the .python
|
||||
# job to this job, instead of overwriting them by creating
|
||||
# this new rules section
|
||||
- !reference [.python, rules]
|
||||
|
||||
|
||||
# Only runs when a .py file is edited
|
||||
server_lifecycle_test:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue