summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-07 14:48:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-05-07 14:49:02 (GMT)
commite417d460469cb5c225c8126dc499f3a122365660 (patch)
treeaffb25b8d2ad35fdc1e37737d606f65c9f0946d5
parenteac20afe9af631fbc7ea1b172e066875895077ce (diff)
parenta5a4b0b6ab01a6747a9ee4aed3693836f77c3eef (diff)
downloadCMake-e417d460469cb5c225c8126dc499f3a122365660.zip
CMake-e417d460469cb5c225c8126dc499f3a122365660.tar.gz
CMake-e417d460469cb5c225c8126dc499f3a122365660.tar.bz2
Merge topic 'ci-cmake.org-help'
a5a4b0b6ab gitlab-ci: add jobs to upload cmake.org/cmake/help/git-{master,stage} docs 354ae6fe2e gitlab-ci: add jobs to build cmake.org/cmake/help/git-{master,stage} docs eb7cbb577e gitlab-ci: clarify name of rsync upload block for binaries Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6103
-rw-r--r--.gitlab-ci.yml44
-rw-r--r--.gitlab/artifacts.yml9
-rw-r--r--.gitlab/os-linux.yml15
-rw-r--r--.gitlab/rules.yml12
-rw-r--r--.gitlab/upload.yml19
5 files changed, 93 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18844d1..f8a22a5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -54,7 +54,7 @@ prep:doc-package:
upload:source-package:
extends:
- - .rsync_upload
+ - .rsync_upload_binary
- .run_only_for_package
dependencies:
- prep:source-package
@@ -63,6 +63,40 @@ upload:source-package:
variables:
RSYNC_DESTINATION: dev
+# Documentation builds
+
+build:help:master:
+ extends:
+ - .cmake_org_help
+ - .run_only_for_continuous_master
+
+upload:help:master:
+ extends:
+ - .rsync_upload_help
+ - .run_only_for_continuous_master
+ variables:
+ RSYNC_DESTINATION: git-master
+ dependencies:
+ - build:help:master
+ needs:
+ - build:help:master
+
+build:help:stage:
+ extends:
+ - .cmake_org_help
+ - .run_only_for_continuous_stage
+
+upload:help:stage:
+ extends:
+ - .rsync_upload_help
+ - .run_only_for_continuous_stage
+ variables:
+ RSYNC_DESTINATION: git-stage
+ dependencies:
+ - build:help:stage
+ needs:
+ - build:help:stage
+
# Lint builds
build:debian10-iwyu:
@@ -406,7 +440,7 @@ build:linux-x86_64-package:
upload:linux-x86_64-package:
extends:
- - .rsync_upload
+ - .rsync_upload_binary
- .run_only_for_package
dependencies:
- build:linux-x86_64-package
@@ -430,7 +464,7 @@ build:linux-aarch64-package:
upload:linux-aarch64-package:
extends:
- - .rsync_upload
+ - .rsync_upload_binary
- .run_only_for_package
dependencies:
- build:linux-aarch64-package
@@ -542,7 +576,7 @@ build:macos-package:
upload:macos-package:
extends:
- - .rsync_upload
+ - .rsync_upload_binary
- .run_only_for_package
dependencies:
- build:macos-package
@@ -565,7 +599,7 @@ build:macos10.10-package:
upload:macos10.10-package:
extends:
- - .rsync_upload
+ - .rsync_upload_binary
- .run_only_for_package
dependencies:
- build:macos10.10-package
diff --git a/.gitlab/artifacts.yml b/.gitlab/artifacts.yml
index bf8e8b6..edd313f 100644
--- a/.gitlab/artifacts.yml
+++ b/.gitlab/artifacts.yml
@@ -97,3 +97,12 @@
paths:
# Take the install tree.
- build/install-doc/
+
+.cmake_org_help_artifacts:
+ artifacts:
+ expire_in: 1d
+ paths:
+ - build/html
+ exclude:
+ - build/html/.buildinfo
+ - build/html/objects.inv
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index 81c4d8d..d0ac85e 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -368,3 +368,18 @@
- .needs_centos6_x86_64
variables:
CMAKE_CI_JOB_NIGHTLY: "true"
+
+### Documentation
+
+.cmake_org_help:
+ stage: build
+ extends:
+ - .fedora33
+ - .linux_builder_tags
+ - .cmake_org_help_artifacts
+ script:
+ - *before_script_linux
+ - mkdir -p build/
+ - cd build/
+ - cmake ../Utilities/Sphinx -GNinja -DSPHINX_HTML=ON -DSPHINX_FLAGS="-A versionswitch=1"
+ - ninja
diff --git a/.gitlab/rules.yml b/.gitlab/rules.yml
index 4ac67e8..4846fea 100644
--- a/.gitlab/rules.yml
+++ b/.gitlab/rules.yml
@@ -62,3 +62,15 @@
- if: '$CMAKE_CI_PACKAGE == "true"'
when: on_success
- when: never
+
+.run_only_for_continuous_master:
+ rules:
+ - if: '$CMAKE_CI_PROJECT_MAIN_BRANCH != null && $CI_COMMIT_BRANCH != null && $CMAKE_CI_PROJECT_MAIN_BRANCH == $CI_COMMIT_BRANCH'
+ 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'
+ when: on_success
+ - when: never
diff --git a/.gitlab/upload.yml b/.gitlab/upload.yml
index 8b8daa1..3253fd3 100644
--- a/.gitlab/upload.yml
+++ b/.gitlab/upload.yml
@@ -1,6 +1,6 @@
# Steps for uploading artifacts
-.rsync_upload:
+.rsync_upload_binary:
image: "fedora:32"
stage: upload
tags:
@@ -16,3 +16,20 @@
- chmod 400 $RSYNC_BINARY_KEY
- ssh-keygen -y -f $RSYNC_BINARY_KEY > $RSYNC_BINARY_KEY.pub
- rsync -tv --recursive -e "ssh -i $RSYNC_BINARY_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/ kitware@cmake.org:$RSYNC_DESTINATION/
+
+.rsync_upload_help:
+ stage: upload
+ image: "fedora:33"
+ tags:
+ - docker
+ - linux
+ - build
+ environment:
+ name: rsync-upload
+
+ script:
+ - ls build/html/index.html
+ - dnf install -y --setopt=install_weak_deps=False rsync openssh-clients
+ - chmod 400 $RSYNC_HELP_KEY
+ - ssh-keygen -y -f $RSYNC_HELP_KEY > $RSYNC_HELP_KEY.pub
+ - rsync -tv --recursive --delete -e "ssh -i $RSYNC_HELP_KEY -o StrictHostKeyChecking=no -o LogLevel=ERROR" build/html/ kitware@cmake.org:$RSYNC_DESTINATION/