diff options
author | Brad King <brad.king@kitware.com> | 2021-05-06 18:27:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-05-07 13:52:59 (GMT) |
commit | 354ae6fe2e48d15ed205b39b59f553f1e32aa8dd (patch) | |
tree | c8ddea14ba498d95376dbb6e921b8ee78f7d197c | |
parent | eb7cbb577ef5690717e0bb4a9d7c3c69c0a672c7 (diff) | |
download | CMake-354ae6fe2e48d15ed205b39b59f553f1e32aa8dd.zip CMake-354ae6fe2e48d15ed205b39b59f553f1e32aa8dd.tar.gz CMake-354ae6fe2e48d15ed205b39b59f553f1e32aa8dd.tar.bz2 |
gitlab-ci: add jobs to build cmake.org/cmake/help/git-{master,stage} docs
-rw-r--r-- | .gitlab-ci.yml | 12 | ||||
-rw-r--r-- | .gitlab/artifacts.yml | 9 | ||||
-rw-r--r-- | .gitlab/os-linux.yml | 15 | ||||
-rw-r--r-- | .gitlab/rules.yml | 12 |
4 files changed, 48 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index daec83c..090012a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,18 @@ upload:source-package: variables: RSYNC_DESTINATION: dev +# Documentation builds + +build:help:master: + extends: + - .cmake_org_help + - .run_only_for_continuous_master + +build:help:stage: + extends: + - .cmake_org_help + - .run_only_for_continuous_stage + # Lint builds build:debian10-iwyu: 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 |