Skip to content
Snippets Groups Projects
Commit 43c1abf1 authored by Marilena Bandieramonte's avatar Marilena Bandieramonte
Browse files

CI setup files and gitlab-ci.yml file for GeoModelG4

parent 52b69532
Branches
Tags
No related merge requests found
Pipeline #1258142 failed
stages:
- dependencies
- build
before_script:
- yum -y install cmake glibc-devel which
- set +e && source CI/setup_lcg.sh; set -e
variables:
CMAKE_BASE_ARGS: -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install
GIT_SUBMODULE_STRATEGY: recursive
geomodelcore-build:
stage: dependencies
script:
- pwd; ls
- git clone https://gitlab.cern.ch/GeoModelDev/GeoModelCore.git
- cd GeoModelCore
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../../install ../
- make -j$(nproc)
- make install
artifacts:
paths:
- install
geomodelio-build:
stage: dependencies
script:
- pwd; ls
- git clone https://gitlab.cern.ch/GeoModelDev/GeoModelIO.git
- cd GeoModelIO
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../../install ../
- make -j$(nproc)
- make install
artifacts:
paths:
- install
CLHEP-build:
stage: dependencies
script:
- pwd; ls
- git clone https://gitlab.cern.ch/CLHEP/CLHEP.git
- git checkout CLHEP_2_4_1_0
- cd CLHEP
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../../install ../
- make -j$(nproc)
- make install
artifacts:
paths:
- install
geant4-build:
stage: dependencies
script:
- pwd; ls
- git clone https://gitlab.cern.ch/geant4/geant4.git
- cd geant4
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=../../install ../ -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_BUILD_MULTITHREADED=ON -DXERCESC_ROOT_DIR=../../install/xerces-c
- make -j$(nproc)
- make install
artifacts
paths:
- install
.build_template: &build_template
stage: build
tags:
- cvmfs
script:
- echo "PWD; LS"
- pwd; ls
- mkdir build
- cd build
- echo "${CMAKE_ARGS}"
- cmake ${CMAKE_ARGS} ..
- cmake --build . -- -j$(nproc)
- cmake --build . -- install
build_slc6:
<<: *build_template
image: cern/slc6-base
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
build_cc7:
<<: *build_template
image: cern/cc7-base
variables:
CMAKE_ARGS: ${CMAKE_BASE_ARGS}
FROM cern/slc6-base:latest
# minimal development packages
RUN yum -y update \
&& yum -y install \
cmake \
glibc-devel \
which \
&& yum -y clean all
#!/bin/sh -ex
#
# setup LCG release via cvmfs
# determine os release
if [ "$(cat /etc/redhat-release | grep 'Scientific Linux CERN SLC release 6')" ]; then
os=slc6
compiler=gcc62-opt
elif [ "$(cat /etc/centos-release | grep 'CentOS Linux release 7')" ]; then
os=centos7
compiler=gcc7-opt
else
echo "Unknown OS" 1>&2
exit 1
fi
release=LCG_95
platform=x86_64-${os}-${compiler}
lcg=/cvmfs/sft.cern.ch/lcg/views/${release}/${platform}
source ${lcg}/setup.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment