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

Never rely on default Gitlab Docker image in gitlab-ci

See merge request !1491
parents a83ccd67 50223186
No related branches found
No related tags found
1 merge request!1491Never rely on default Gitlab Docker image in gitlab-ci
Pipeline #6162082 passed
#####################################################################################
# (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". #
......@@ -67,6 +67,7 @@ variables:
- build/Testing
.warnings-check: &template_warnings_check
image: gitlab-registry.cern.ch/linuxsupport/alma9-base:latest
variables:
LOG: build.log
script:
......@@ -219,6 +220,7 @@ 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
needs:
- job: "lcg:103:x86_64-centos7-gcc12-opt"
artifacts: true
......@@ -267,6 +269,7 @@ pre-commit-checks:
expire_in: 1 week
check-copyright:
image: registry.cern.ch/docker.io/library/python:3.9
script:
- |
curl -o lb-check-copyright "https://gitlab.cern.ch/lhcb-core/LbDevTools/-/raw/master/LbDevTools/SourceTools.py?inline=false"
......
#!/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