summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-06-03 14:19:25 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-06-03 16:50:15 (GMT)
commitc5b072800df29f4250e69002c880693b46000c7a (patch)
tree67bf0f45ae38ebf6da6493550e9056c1623b8db0 /.gitlab-ci.yml
parent45f2786ff76f3505c33b99e6b36b8ad1dab5d8f0 (diff)
downloadCMake-c5b072800df29f4250e69002c880693b46000c7a.zip
CMake-c5b072800df29f4250e69002c880693b46000c7a.tar.gz
CMake-c5b072800df29f4250e69002c880693b46000c7a.tar.bz2
gitlab-ci: add jobs for reproducing the release binaries
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf7cb26..8339dc0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,13 @@
when: always
- when: never
+.release_linux: &release_linux
+ image: "kitware/cmake:build-linux-x86_64-deps-2020-04-02@sha256:77e9ab183f34680990db9da5945473e288f0d6556bce79ecc1589670d656e157"
+
+ variables:
+ GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
+ LAUNCHER: "scl enable devtoolset-6 rh-python36 --"
+
.fedora31: &fedora31
image: "kitware/cmake:ci-fedora31-x86_64-2020-06-01"
@@ -199,6 +206,38 @@
interruptible: true
+.cmake_build_release_linux: &cmake_build_release_linux
+ stage: build
+
+ script:
+ # Bootstrap.
+ - mkdir build/
+ - cp -v Utilities/Release/linux/x86_64/cache.txt build/CMakeCache.txt
+ # Make sccache available.
+ - .gitlab/ci/sccache.sh
+ - export PATH=$PWD/.gitlab:$PATH
+ # Append sccache settings to the cache.
+ - echo "CMAKE_C_COMPILER_LAUNCHER:STRING=sccache" >> build/CMakeCache.txt
+ - echo "CMAKE_CXX_COMPILER_LAUNCHER:STRING=sccache" >> build/CMakeCache.txt
+ # CI settings.
+ - echo "CMake_TEST_INSTALL:BOOL=OFF" >> build/CMakeCache.txt
+ - echo "CMAKE_INSTALL_PREFIX:PATH=$PWD/build/install" >> build/CMakeCache.txt
+ - echo "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY:BOOL=ON" >> build/CMakeCache.txt
+ # Bootstrap
+ - cd build/
+ - "$LAUNCHER ../bootstrap --parallel=$(nproc) --docdir=doc/cmake"
+ # FIXME: When CTest can drive an external CMake for the build as well,
+ # use the scripts here.
+ - "$LAUNCHER make -j$(nproc)"
+ # NOTE: This regex matches that used in the release build.
+ - "$LAUNCHER bin/ctest --output-on-failure -j$(nproc) -R '^(CMake\\.|CMakeLib\\.|CMakeServerLib\\.|RunCMake\\.ctest_memcheck)'"
+ # Make a package.
+ - bin/cpack -G TGZ
+ - bin/cpack -G STGZ
+ - sccache --show-stats
+
+ interruptible: true
+
.cmake_build_windows: &cmake_build_windows
stage: build
@@ -279,6 +318,13 @@
- build/DartConfiguation.tcl
- build/CTestCustom.cmake
+.cmake_release_artifacts: &cmake_release_artifacts
+ artifacts:
+ expire_in: 5d
+ paths:
+ # Any packages made.
+ - build/cmake-*-Linux-x86_64.*
+
.cmake_test_artifacts: &cmake_test_artifacts
artifacts:
expire_in: 1d
@@ -353,6 +399,14 @@ build:fedora31-sphinx:
- *linux_builder_tags_qt
rules: *rules_settings
+build:centos6-release:
+ <<:
+ - *release_linux
+ - *cmake_build_release_linux
+ - *cmake_release_artifacts
+ - *linux_builder_tags
+ rules: *manual_rules_settings
+
build:fedora31-ninja:
<<:
- *fedora31_ninja