Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
pipelines
Commits
8d33daee
Commit
8d33daee
authored
Sep 16, 2020
by
Tigran Mkrtchyan
☕
Browse files
cta: add build pipeline to build CTA outside of CERN infrastructure
parent
f52f5b5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
cta-build.yml
0 → 100644
View file @
8d33daee
stages
:
-
build:srpm
-
build:rpm
before_script
:
-
export CTA_BUILD_ID=${CI_PIPELINE_ID}git${CI_COMMIT_SHA:0:8}
-
echo "Exporting CTA_BUILD_ID=${CTA_BUILD_ID}"
-
test -n "${CI_COMMIT_TAG}" && export TAG_VERSION=$(echo ${CI_COMMIT_TAG} | sed -e 's/^v//;s/-.*$//')
-
test -n "${CI_COMMIT_TAG}" && export TAG_RELEASE=$(echo ${CI_COMMIT_TAG} | sed -e 's/^[^-]*-//')
-
echo "Removing protectbase from all repos (same as Puppet)"
-
sed -i '/^protect=/d' /etc/yum.repos.d/*
cta_srpm
:
stage
:
build:srpm
retry
:
1
image
:
centos7
script
:
-
yum install -y gcc-c++ cmake make rpm-build
-
mkdir build_srpm
-
cd build_srpm
-
cmake -DPackageOnly:Bool=true -DVCS_VERSION=${CTA_BUILD_ID} ..
-
make cta_srpm
artifacts
:
expire_in
:
30 days
paths
:
-
build_srpm/RPM/SRPMS/
cta_rpm
:
except
:
-
tags
stage
:
build:rpm
retry
:
1
image
:
centos7
script
:
-
cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum.repos.d/*.repo /etc/yum.repos.d/
-
yum install -y gcc-c++ cmake make rpm-build
-
yum -y install yum-plugin-priorities yum-plugin-versionlock
-
yum install -y git
-
git submodule update --init --recursive
-
cd xrootd-ssi-protobuf-interface && export XROOTD_SSI_PROTOBUF_INTERFACE_VERSION=$(git describe --abbrev=0) && cd ..
-
cp -f continuousintegration/docker/ctafrontend/cc7/etc/yum/pluginconf.d/versionlock.list /etc/yum/pluginconf.d/
-
yum-builddep --nogpgcheck -y build_srpm/RPM/SRPMS/*
-
mkdir build_rpm
-
cd build_rpm
-
cmake -DVCS_VERSION=${CTA_BUILD_ID} ..
-
make cta_rpm
artifacts
:
expire_in
:
30 days
paths
:
-
build_rpm/RPM/RPMS
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment