gitlab-ci: consolidate jobs for cmake.org/cmake/help/git-{master,stage} docs

This commit is contained in:
Brad King
2022-04-04 12:04:35 -04:00
parent 5c2e8ce515
commit ed00a29cce
2 changed files with 11 additions and 29 deletions

View File

@@ -70,37 +70,19 @@ u:source-package:
# Documentation builds
b:help:master:
b:cmake.org-help:
extends:
- .cmake_org_help
- .run_only_for_continuous_master
- .run_cmake_org_help
.u:help:master:
u:cmake.org-help:
extends:
- .rsync_upload_help
- .run_only_for_continuous_master
variables:
RSYNC_DESTINATION: git-master
- .run_cmake_org_help
dependencies:
- b:help:master
- b:cmake.org-help
needs:
- b:help:master
b:help:stage:
extends:
- .cmake_org_help
- .run_only_for_continuous_stage
.u:help:stage:
extends:
- .rsync_upload_help
- .run_only_for_continuous_stage
variables:
RSYNC_DESTINATION: git-stage
dependencies:
- b:help:stage
needs:
- b:help:stage
- b:cmake.org-help
# Lint builds

View File

@@ -72,14 +72,14 @@
when: on_success
- when: never
.run_only_for_continuous_master:
.run_cmake_org_help:
rules:
- if: '$CMAKE_CI_PROJECT_MAIN_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_MAIN_BRANCH == $CI_COMMIT_BRANCH'
variables:
RSYNC_DESTINATION: "git-master"
when: on_success
- when: never
.run_only_for_continuous_stage:
rules:
- if: '$CMAKE_CI_PROJECT_CONTINUOUS_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_CONTINUOUS_BRANCH == $CI_COMMIT_BRANCH'
variables:
RSYNC_DESTINATION: "git-stage"
when: on_success
- when: never