Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ntof
daq
ADDH
Commits
708137b5
Commit
708137b5
authored
Jun 02, 2020
by
Sylvain Fargier
🐾
Browse files
🔧
gitlab-ci update
parent
8a5b09c1
Pipeline
#1681442
passed with stages
in 7 minutes and 37 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
708137b5
...
...
@@ -19,39 +19,10 @@ test:
extends
:
.cxx-test
package
:
stage
:
package
# Package from the basic reference image
only
:
variables
:
-
$CI_COMMIT_TAG =~ /^v(\d+)(\.\d+){2}\s*$/
image
:
cern/cc7-base
script
:
# Kerberos for sub-projects
-
echo "${APCDEV_PASSWORD}" | kinit "${APCDEV_USERNAME}@CERN.CH"
# Install deps
-
yum install -y cmake3 make gcc-c++ git boost-devel rpm-build pugixml-devel
# Won't package on a shallow clone
-
git fetch --unshallow
# rpm-build debuginfo workarround, srcdir must be longer than debuginfo path
-
git clone . rpmbuild && cd rpmbuild
# Build
-
mkdir build && cd build
-
cmake3 .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
-
make -j4
-
make rpm-package
-
FILE=$(echo ${CI_COMMIT_TAG}-Linux.rpm| sed 's/^v/-/')
-
'
find
.
-name
"*-$FILE"
||
{
echo
"Tag
mismatches
CMakeLists.txt
version";
exit
1;
}'
-
echo "${CI_JOB_URL}/artifacts/download" > artifact_url.txt
artifacts
:
paths
:
-
rpmbuild/build/*.rpm
-
rpmbuild/build/artifact_url.txt
extends
:
.cxx-package-rpm
variables
:
DEPENDENCIES
:
boost-devel pugixml-devel
PKGNAME
:
addh
# Deploy rpm package
ci-rpm
:
...
...
Write
Preview
Supports
Markdown
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