summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-09-29 14:42:07 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-29 15:18:45 (GMT)
commit45633a6297f21fd0f95c4a6e8318cd9b334e2a94 (patch)
treef0d0750a9aea427d2b6bba8dfd4ac87b1ce0d213 /.gitlab/ci
parent17decc46917f26199abe6e00a028d35497972d40 (diff)
downloadCMake-45633a6297f21fd0f95c4a6e8318cd9b334e2a94.zip
CMake-45633a6297f21fd0f95c4a6e8318cd9b334e2a94.tar.gz
CMake-45633a6297f21fd0f95c4a6e8318cd9b334e2a94.tar.bz2
gitlab-ci: add a job to make source packages
Diffstat (limited to '.gitlab/ci')
-rw-r--r--.gitlab/ci/cmake_version.cmake3
-rwxr-xr-x.gitlab/ci/cmake_version.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab/ci/cmake_version.cmake b/.gitlab/ci/cmake_version.cmake
new file mode 100644
index 0000000..ef9f7f2
--- /dev/null
+++ b/.gitlab/ci/cmake_version.cmake
@@ -0,0 +1,3 @@
+get_filename_component(CMake_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE)
+include("${CMake_SOURCE_DIR}/Source/CMakeVersion.cmake")
+message(STATUS ${CMake_VERSION})
diff --git a/.gitlab/ci/cmake_version.sh b/.gitlab/ci/cmake_version.sh
new file mode 100755
index 0000000..03b1614
--- /dev/null
+++ b/.gitlab/ci/cmake_version.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+cmake -P "${BASH_SOURCE%/*}/cmake_version.cmake" | cut -d ' ' -f 2