Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
a868aaa4
Commit
a868aaa4
authored
2 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Silence flake8 warnings
parent
086b6368
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+110
-6
110 additions, 6 deletions
.gitlab-ci.yml
with
110 additions
and
6 deletions
.gitlab-ci.yml
+
110
−
6
View file @
a868aaa4
stages
:
-
build
-
documentation
-
deployment
LCG-102-XercesC-centos7-gcc11-opt
:
mac1015-clang110-Geant10.6
:
stage
:
build
tags
:
-
cvmfs
-
mac
script
:
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_
102/x86_64-centos7-gcc
11-opt/setup.sh
-
export CXX=g++
-
export CC=
gcc
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_
98python3/x86_64-mac1015-clang
11
0
-opt/setup.sh
-
export CXX=
clan
g++
-
export CC=
clang
-
export FC=""
-
mkdir build
-
cd build
-
cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON
-DDD4HEP_USE_XERCESC=ON -DDD4HEP_USE_TBB=ON
-DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 ..
-
cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 ..
-
ninja
-
ninja install
-
. ../bin/thisdd4hep.sh
...
...
@@ -25,6 +27,29 @@ LCG-102-XercesC-centos7-gcc11-opt:
-
ninja install
-
ctest --output-on-failure -E t_ClientTests_Check_Shape_Eightpoint_Reflect_DetElement
mac1015-clang110-Geant10.6-XERCESC
:
stage
:
build
tags
:
-
mac
script
:
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_98python3/x86_64-mac1015-clang110-opt/setup.sh
-
export CXX=clang++
-
export CC=clang
-
export FC=""
-
mkdir build
-
cd build
-
cmake -GNinja -DDD4HEP_USE_GEANT4=ON -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_LCIO=ON -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -DDD4HEP_USE_XERCESC=ON ..
-
ninja
-
ninja install
-
. ../bin/thisdd4hep.sh
-
ctest --output-on-failure -j4
-
cd ../examples/
-
mkdir build
-
cd build
-
cmake -GNinja -DBoost_NO_BOOST_CMAKE=ON -DDD4HEP_USE_XERCESC=ON -DCMAKE_CXX_STANDARD=17 ..
-
ninja
-
ninja install
-
ctest --output-on-failure -E t_ClientTests_Check_Shape_Eightpoint_Reflect_DetElement
Python
:
stage
:
build
...
...
@@ -36,3 +61,82 @@ Python:
-
echo "RUNNING FLAKE8 CHECK"
-
find . -name "*.py" -and -not -name 'ddsix.py' -exec flake8 {} +
#############################
# Documentation Compilation #
#############################
# Compile Doxygen reference
doxygen
:
stage
:
documentation
needs
:
[]
tags
:
-
docker
image
:
ghcr.io/aidasoft/centos7:latest
script
:
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/setup.sh
-
mkdir -p public
-
mkdir build
-
cd build
-
cmake -DBUILD_DOCS_ONLY=ON ..
-
make reference
-
mv reference/html ../public/reference
artifacts
:
paths
:
-
public
expire_in
:
3 hour
# Compile LaTeX user manual:
usermanuals
:
stage
:
documentation
needs
:
[]
tags
:
-
docker
image
:
ghcr.io/aidasoft/centos7:latest
script
:
-
yum install -y ghostscript poppler-utils perl
-
source /cvmfs/sft.cern.ch/lcg/views/LCG_102/x86_64-centos7-gcc11-opt/setup.sh
-
export PATH=/cvmfs/sft.cern.ch/lcg/external/texlive/2017/bin/x86_64-linux:$PATH
-
export max_print_line=200
-
mkdir -p public/usermanuals
-
mkdir build
-
cd build
-
cmake -DBUILD_DOCS_ONLY=ON ..
-
make pdf
-
make html
-
mv DD4hepManual ../public/usermanuals/.
-
mv DDAlignManual ../public/usermanuals/.
-
mv DDCondManual ../public/usermanuals/.
-
mv DDEveManual ../public/usermanuals/.
-
mv DDG4Manual ../public/usermanuals/.
-
mv DDRecManual ../public/usermanuals/.
artifacts
:
paths
:
-
public
expire_in
:
3 hour
############################
# Documentation Deployment #
############################
# Automatically deploy documentation to the website
# Deployment job only executed for new tag pushs, not for every commit.
deploy-documentation
:
variables
:
EOS_PATH
:
"
/eos/project/d/dd4hep/www/"
only
:
-
tags@CLICdp/DetectorSoftware/DD4hep
-
master@CLICdp/DetectorSoftware/DD4hep
stage
:
deployment
tags
:
-
docker
needs
:
[
"
usermanuals"
,
"
doxygen"
]
# Docker image with tools to deploy to EOS
image
:
gitlab-registry.cern.ch/ci-tools/ci-web-deployer:latest
script
:
-
deploy-eos
# do not run any globally defined before_script or after_script for this step
before_script
:
[]
after_script
:
[]
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