Skip to content
Snippets Groups Projects
Commit 9ceafce7 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Added the build of this project to the CI as well.

At the same time switched the CI to use LCG_96b, as nlohmann_json
only started appearing in LCG with that version.
parent 435d36fa
Branches
Tags
1 merge request!1CMake Build Configuration Updates, master branch (2020.03.12.)
......@@ -24,16 +24,40 @@ before_script:
- cmake -GNinja -DCMAKE_INSTALL_PREFIX=../dependencies-install ../GeoModelCore/
- cmake --build . --target install
- cd ../GeoModelIO-build/
- cmake -GNinja -DCMAKE_INSTALL_PREFIX=../dependencies-install -DCMAKE_PREFIX_PATH=../dependencies-install ../GeoModelIO/
- cmake -GNinja -DCMAKE_INSTALL_PREFIX=../dependencies-install -DCMAKE_PREFIX_PATH=${PWD}/../dependencies-install ../GeoModelIO/
- cmake --build . --target install
artifacts:
paths:
- dependencies-install/
slc6_dependencies:
dependencies:slc6:
<<: *dependencies_template
image: cern/slc6-base:latest
centos7_dependencies:
dependencies:centos7:
<<: *dependencies_template
image: cern/cc7-base:latest
# Build this project.
.build_template: &build_template
stage: build
tags:
- docker
- cvmfs
script:
- mkdir build
- cd build/
- cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=${PWD}/../dependencies-install ../
- cmake --build .
build:slc6:
<<: *build_template
image: cern/slc6-base:latest
dependencies:
- dependencies:slc6
build:centos7:
<<: *build_template
image: cern/cc7-base:latest
dependencies:
- dependencies:centos7
......@@ -8,16 +8,16 @@
# determine os release
if [ "$(cat /etc/redhat-release | grep 'Scientific Linux CERN SLC release 6')" ]; then
os=slc6
compiler=gcc62-opt
compiler=gcc8-opt
elif [ "$(cat /etc/centos-release | grep 'CentOS Linux release 7')" ]; then
os=centos7
compiler=gcc7-opt
compiler=gcc9-opt
else
echo "Unknown OS" 1>&2
exit 1
fi
release=LCG_95
release=LCG_96b
platform=x86_64-${os}-${compiler}
lcg=/cvmfs/sft.cern.ch/lcg/views/${release}/${platform}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment