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

This commit is contained in:
Brad King committed 2022-04-05 16:09:55 -04:00
1 parent 5c2e8ce515
commit ed00a29cce
2 files changed
+11 -29

No files matched your search

+6 -24
View File
@@ -70,37 +70,19 @@ u:source-package:
# Documentation builds # Documentation builds
b:help:master: b:cmake.org-help:
extends: extends:
- .cmake_org_help - .cmake_org_help
- .run_only_for_continuous_master - .run_cmake_org_help
.u:help:master: u:cmake.org-help:
extends: extends:
- .rsync_upload_help - .rsync_upload_help
- .run_only_for_continuous_master - .run_cmake_org_help
variables:
RSYNC_DESTINATION: git-master
dependencies: dependencies:
- b:help:master - b:cmake.org-help
needs: needs:
- b:help:master - b:cmake.org-help
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
# Lint builds # Lint builds
+5 -5
View File
@@ -72,14 +72,14 @@
when: on_success when: on_success
- when: never - when: never
.run_only_for_continuous_master: .run_cmake_org_help:
rules: rules:
- if: '$CMAKE_CI_PROJECT_MAIN_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_MAIN_BRANCH == $CI_COMMIT_BRANCH' - 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: 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' - 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: on_success
- when: never - when: never