Skip to content
Snippets Groups Projects
Commit 5c7893f5 authored by Administrator's avatar Administrator
Browse files

Move code format check to container runner

Up to now the codef ormat check was executed on a dedicated machine which
isn't accessible this morning. Meanwhile the code format check can also run
in a container environment, so move it there.
parent cead145f
No related branches found
No related tags found
1 merge request!1509Move clang-format check from dedicated hardware to container
Pipeline #25727 passed
......@@ -76,7 +76,7 @@ LinearHistCheck:
CodeFormatCheck:
stage: checkFormat
tags:
- CbmRoot
- CbmRoot_apptainer
only:
refs:
- merge_requests
......@@ -94,10 +94,18 @@ CodeFormatCheck:
- echo "export FAIRROOTPATH=/cvmfs/fairsoft.gsi.de/debian10/fairroot/\${FAIRROOT_VERSION}_fs_\${FAIRSOFT_VERSION}" >> env.sh
- echo "export BUILDDIR=$PWD/build" >> env.sh
- echo "export SOURCEDIR=$PWD" >> env.sh
- echo "export PATH=/cvmfs/fairroot.gsi.de/clang-format-11.0.0/bin:\$SIMPATH/bin:$PATH" >> env.sh
- echo "export PATH=/cvmfs/cbm.gsi.de/debian10/clang-format-11.0.0/bin:\$SIMPATH/bin:$PATH" >> env.sh
- echo "export LABEL=format-check_MR-\${CI_MERGE_REQUEST_IID}" >> env.sh
- echo "export FAIRROOT_FORMAT_BASE=upstream/\${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}" >> env.sh
- . ./env.sh && ctest -S cmake/scripts/checkformat.cmake -VV
variables:
CONTAINER: "/cvmfs/vae.gsi.de/debian10/containers/user_container-production.sif"
OS: debian10
# FAIRSOFT_VERSION: nov22p1
# FAIRROOT_VERSION: v18.8.0
# BASE_PATH: "/opt"
# SIMPATH: "$BASE_PATH/fairsoft/$FAIRSOFT_VERSION"
# FAIRROOTPATH: "$BASE_PATH/fairroot/${FAIRROOT_VERSION}_${FAIRSOFT_VERSION}"
#CodeTidyCheck:
# stage: checkFormat
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment