Commit ad3f078f authored by Sylvain Fargier's avatar Sylvain Fargier 🐾
Browse files

Merge branch 'wip-ci' into 'master'

🔧 gitlab-ci update

See merge request apc/experiments/ntof/addh!4
parents 8a5b09c1 708137b5
Pipeline #1901259 passed with stages
in 7 minutes and 14 seconds
......@@ -19,39 +19,10 @@ test:
extends: .cxx-test
package:
stage: package
# Package from the basic reference image
only:
extends: .cxx-package-rpm
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
DEPENDENCIES: boost-devel pugixml-devel
PKGNAME: addh
# Deploy rpm package
ci-rpm:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment