summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/cmake.sh
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-04-30 13:59:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-04-30 14:00:02 (GMT)
commitc09efe074d793203ab846e97bde8d03e4714dc2a (patch)
treef192d3817b3e2a5734f719aa7c6ddd71ca2ea27a /.gitlab/ci/cmake.sh
parent2743ed54dda7342b3c8fe802d082476301e8d57f (diff)
parent4318e8ed353064d8f1d531ab3e42c16347f1081b (diff)
downloadCMake-c09efe074d793203ab846e97bde8d03e4714dc2a.zip
CMake-c09efe074d793203ab846e97bde8d03e4714dc2a.tar.gz
CMake-c09efe074d793203ab846e97bde8d03e4714dc2a.tar.bz2
Merge topic 'gitlab-ci-lint'
4318e8ed35 gitlab-ci: add iwyu job 0866b9253b gitlab-ci: add initial clang-tidy build 0a5bcf97b9 gitlab-ci: add scripts for use by CI 960158b90d ci: add scripts to download build tools 6af91c7c4d ci: add an image for Debian 10 68903ae238 ci: add a Docker container for building CMake 3ac24a8a6e cmFunctionBlocker: include missing header b745b8fd36 IWYU: mark includes needed for assert statements as needed ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4643
Diffstat (limited to '.gitlab/ci/cmake.sh')
-rwxr-xr-x.gitlab/ci/cmake.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab/ci/cmake.sh b/.gitlab/ci/cmake.sh
new file mode 100755
index 0000000..4b2f53f
--- /dev/null
+++ b/.gitlab/ci/cmake.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+readonly version="3.17.2"
+readonly sha256sum="dc57f3cc448ca67fc8776b4ad4c22b087b9c6a8e459938b9622b8c7f4ef6b21e"
+readonly filename="cmake-$version-Linux-x86_64"
+readonly tarball="$filename.tar.gz"
+
+cd .gitlab
+
+echo "$sha256sum $tarball" > cmake.sha256sum
+curl -OL "https://github.com/Kitware/CMake/releases/download/v$version/$tarball"
+sha256sum --check cmake.sha256sum
+tar xf "$tarball"
+mv "$filename" cmake