Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
c716a654
Commit
c716a654
authored
4 months ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
Add a script for coverity job
parent
97131151
No related branches found
No related tags found
1 merge request
!501
Update docker environment, use shared runners, and plafrim for cuda/rocm
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/coverity.yml
+1
-13
1 addition, 13 deletions
.gitlab/coverity.yml
tools/coverity.sh
+30
-0
30 additions, 0 deletions
tools/coverity.sh
with
31 additions
and
13 deletions
.gitlab/coverity.yml
+
1
−
13
View file @
c716a654
---
---
coverity
:
coverity
:
stage
:
analyze
stage
:
analyze
tags
:
[
"
docker"
,
"
large"
]
interruptible
:
true
rules
:
rules
:
-
if
:
($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^ci-.*$/) && $CI_PIPELINE_SOURCE != "schedule"
-
if
:
($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ /^ci-.*$/) && $CI_PIPELINE_SOURCE != "schedule"
-
if
:
($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME !~ /^notest-.*$/)
-
if
:
($CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME !~ /^notest-.*$/)
...
@@ -12,17 +10,7 @@ coverity:
...
@@ -12,17 +10,7 @@ coverity:
variables
:
variables
:
VERSION
:
coverity
VERSION
:
coverity
script
:
script
:
-
(mkdir -p build-$VERSION && cd build-$VERSION &&
-
./tools/coverity.sh
cmake .. -C ../cmake_modules/gitlab-ci-initial-cache.cmake
-DCHAMELEON_USE_CUDA=ON -DCHAMELEON_USE_MPI=ON &&
cov-build --dir ../cov-int make -j 4)
-
tar czvf chameleon.tgz cov-int
-
curl --form token=$COVERITY_TOKEN
--form email=florent.pruvost@inria.fr
--form file=@chameleon.tgz
--form version="`git rev-parse --short HEAD`"
--form description=""
https://scan.coverity.com/builds?project=Chameleon
artifacts
:
artifacts
:
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in
:
1 week
expire_in
:
1 week
...
...
This diff is collapsed.
Click to expand it.
tools/coverity.sh
0 → 100755
+
30
−
0
View file @
c716a654
#!/usr/bin/env bash
#
# @file coverity.sh
#
# @copyright 2024-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved.
#
# @version 1.3.0
# @author Florent Pruvost
# @date 2024-11-27
#
set
-e
set
-x
CHAMELEON_SRC_DIR
=
${
CHAMELEON_SRC_DIR
:-
$PWD
}
# install plotting dependencies in the testing docker image
CURRENTUSER
=
`
whoami
`
if
[[
-f
/.dockerenv
&&
$CURRENTUSER
==
"gitlab"
]]
;
then
export
PKG_CONFIG_PATH
=
/home/gitlab/install/starpu/lib/pkgconfig:
$PKG_CONFIG_PATH
fi
cmake
-B
build-
$VERSION
-C
cmake_modules/gitlab-ci-initial-cache.cmake
-DCHAMELEON_USE_CUDA
=
OFF
-DCHAMELEON_USE_MPI
=
ON
cov-build
--dir
cov-int/ cmake
--build
build-
$VERSION
-j4
tar
czvf chameleon.tgz cov-int/
curl
--form
token
=
$COVERITY_TOKEN
\
--form
email
=
florent.pruvost@inria.fr
\
--form
file
=
@chameleon.tgz
\
--form
version
=
"
`
git rev-parse
--short
HEAD
`
"
\
--form
description
=
""
\
https://scan.coverity.com/builds?project
=
Chameleon
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