Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GeoModelG4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GeoModelDev
GeoModelG4
Commits
43c1abf1
Commit
43c1abf1
authored
5 years ago
by
Marilena Bandieramonte
Browse files
Options
Downloads
Patches
Plain Diff
CI setup files and gitlab-ci.yml file for GeoModelG4
parent
52b69532
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#1258142
failed
5 years ago
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+100
-0
100 additions, 0 deletions
.gitlab-ci.yml
CI/Dockerfile
+12
-0
12 additions, 0 deletions
CI/Dockerfile
CI/setup_lcg.sh
+23
-0
23 additions, 0 deletions
CI/setup_lcg.sh
with
135 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
100
−
0
View file @
43c1abf1
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}
This diff is collapsed.
Click to expand it.
CI/Dockerfile
0 → 100644
+
12
−
0
View file @
43c1abf1
FROM
cern/slc6-base:latest
# minimal development packages
RUN
yum
-y
update
\
&&
yum
-y
install
\
cmake
\
glibc-devel
\
which
\
&&
yum
-y
clean all
This diff is collapsed.
Click to expand it.
CI/setup_lcg.sh
0 → 100644
+
23
−
0
View file @
43c1abf1
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment