Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
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
Container Registry
Model registry
Operate
Environments
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
Show more breadcrumbs
Gaudi
Gaudi
Commits
50223186
Commit
50223186
authored
1 year ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Do not use git from CVMFS for check-sources
parent
bf5383ad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1491
Never rely on default Gitlab Docker image in gitlab-ci
Pipeline
#6161396
passed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-2
0 additions, 2 deletions
.gitlab-ci.yml
ci-utils/check-sources
+2
-5
2 additions, 5 deletions
ci-utils/check-sources
with
2 additions
and
7 deletions
.gitlab-ci.yml
+
0
−
2
View file @
50223186
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
ci-utils/check-sources
+
2
−
5
View file @
50223186
#!/bin/bash
#####################################################################################
# (c) Copyright 1998-202
0
CERN for the benefit of the LHCb and ATLAS collaborations #
# (c) Copyright 1998-202
3
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
...
...
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