summaryrefslogtreecommitdiffstats
path: root/.gitlab/os-linux.yml
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/os-linux.yml
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/os-linux.yml')
-rw-r--r--.gitlab/os-linux.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml
index dd11cca..74b2de7 100644
--- a/.gitlab/os-linux.yml
+++ b/.gitlab/os-linux.yml
@@ -11,6 +11,12 @@
GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
LAUNCHER: "scl enable devtoolset-6 rh-python36 --"
+.linux_prep_source:
+ image: "fedora:32"
+
+ variables:
+ GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake ci"
+
### Debian
.debian10:
@@ -143,6 +149,19 @@
- cmake --version
- ninja --version
+.cmake_prep_source_linux:
+ stage: prep
+
+ script:
+ - *before_script_linux
+ - dnf install --setopt=install_weak_deps=False -y git-core
+ - v="$(.gitlab/ci/cmake_version.sh)"
+ - mkdir -p build/
+ - git archive --format=tgz "--prefix=cmake-$v/" -o "build/cmake-$v.tar.gz" HEAD
+ - git -c core.autocrlf=true -c core.eol=crlf archive --format=zip --prefix="cmake-$v/" -o "build/cmake-$v.zip" HEAD
+
+ interruptible: true
+
.cmake_prep_doc_linux:
stage: prep