Skip to content
Snippets Groups Projects
Commit 50223186 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Do not use git from CVMFS for check-sources

parent bf5383ad
No related branches found
No related tags found
1 merge request!1491Never rely on default Gitlab Docker image in gitlab-ci
Pipeline #6161396 passed
......@@ -221,8 +221,6 @@ warnings-check:lcg-view:102b:x86_64-centos7-gcc11-opt:
### Misc checks
lcg:103:x86_64-centos7-gcc12-opt:check-unused:
image: gitlab-registry.cern.ch/lhcb-docker/os-base/alma9-devel:latest
tags:
- cvmfs
needs:
- job: "lcg:103:x86_64-centos7-gcc12-opt"
artifacts: true
......
#!/bin/bash
#####################################################################################
# (c) Copyright 1998-2020 CERN for the benefit of the LHCb and ATLAS collaborations #
# (c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations #
# #
# This software is distributed under the terms of the Apache version 2 licence, #
# copied verbatim in the file "LICENSE". #
......@@ -14,15 +14,12 @@ set -eo pipefail
build_file="$1"
IFS=$'\n'
# FIXME remove this once the system git is not as old...
git=/cvmfs/lhcb.cern.ch/lib/contrib/git/2.14.2/bin/git
# Find sources not explicitly referenced from CMakeLists.txt files
not_in_cmakelists=()
for package in $($git ls-files -- '*/CMakeLists.txt' ':!:cmake/'); do
dir=$(dirname $package)
pushd "$dir" >/dev/null
missing=$($git ls-files --cached --others '*.cpp' ':!:*/contrib/*' | \
missing=$(git ls-files --cached --others '*.cpp' ':!:*/contrib/*' | \
xargs -n1 -I_path bash -c \
"git grep -q '_path' -- CMakeLists.txt || echo $dir/_path")
if [ -n "$missing" ]; then
......
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