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
ff3d51f0
Commit
ff3d51f0
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Update sonarqube
parent
ee806863
Loading
Loading
1 merge request
!91
Gitlab/new sonarqube
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/analysis.sh
+18
-14
18 additions, 14 deletions
tools/analysis.sh
with
18 additions
and
14 deletions
tools/analysis.sh
+
18
−
14
View file @
ff3d51f0
...
...
@@ -14,32 +14,36 @@
# Undefine this because not relevant in our configuration
export
UNDEFINITIONS
=
"-UCHAMELEON_USE_OPENCL -UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun -U__cplusplus"
# run cppcheck analysis
cppcheck
-v
-f
--language
=
c
--platform
=
unix64
--enable
=
all
--xml
--xml-version
=
2
--suppress
=
missingInclude
System
${
UNDEFINITIONS
}
--file-list
=
./filelist.txt 2> chameleon_cppcheck.xml
cppcheck
-v
-f
--language
=
c
--platform
=
unix64
--enable
=
all
--xml
--xml-version
=
2
--suppress
=
missingInclude
${
UNDEFINITIONS
}
--file-list
=
./filelist.txt 2> chameleon_cppcheck.xml
# run rats analysis
rats
-w
3
--xml
`
cat
filelist.txt
`
>
chameleon_rats.xml
# create the sonarqube config file
cat
>
sonar-project.properties
<<
EOF
sonar.host.url=https://hpclib-sed.bordeaux.inria.fr/sonarqube-dev
sonar.host.url=https://sonarqube.bordeaux.inria.fr/
sonar.login=
$SONARQUBE_LOGIN
sonar.links.homepage=https://gitlab.inria.fr/solverstack/chameleon
sonar.links.scm=https://gitlab.inria.fr/solverstack/chameleon.git
sonar.links.ci=https://gitlab.inria.fr/solverstack/chameleon/pipelines
sonar.links.
scm
=https://gitlab.inria.fr/solverstack/chameleon/
sonar.projectKey=chameleon
sonar.project
Name=Chameleon
sonar.links.
issue
=https://gitlab.inria.fr/solverstack/chameleon/
issues
sonar.project
Key=hiepacs:chameleon:gitlab:master
sonar.projectDescription=Dense linear algebra subroutines for heterogeneous and distributed architectures
sonar.projectVersion=master
sonar.language=c++
sonar.language=c
sonar.sources=build, compute, control, coreblas, example, include, runtime, testing, timing
sonar.inclusions=`cat filelist.txt | xargs echo | sed 's/ /, /g'`
sonar.sourceEncoding=UTF-8
sonar.c
xx
.compiler.charset=UTF-8
sonar.c
xx
.compiler.parser=GCC
sonar.c
xx
.compiler.regex=^(.*):(
\\
d+):
\\
d+: warning: (.*)
\\
[(.*)
\\
]$
sonar.c
xx
.compiler.reportPath=chameleon_starpu.log, chameleon_starpu_simgrid.log, chameleon_quark.log
sonar.c
xx
.coverage.reportPath=chameleon_coverage.xml
sonar.c
xx
.cppcheck.reportPath=chameleon_cppcheck.xml
sonar.c
xx
.rats.reportPath=chameleon_rats.xml
sonar.c.compiler.charset=UTF-8
sonar.c.compiler.parser=GCC
sonar.c.compiler.regex=^(.*):(
\\
d+):
\\
d+: warning: (.*)
\\
[(.*)
\\
]$
sonar.c.compiler.reportPath=chameleon_starpu.log, chameleon_starpu_simgrid.log, chameleon_quark.log
sonar.c.coverage.reportPath=chameleon_coverage.xml
sonar.c.cppcheck.reportPath=chameleon_cppcheck.xml
sonar.c.rats.reportPath=chameleon_rats.xml
EOF
# run sonar analysis + publish on sonarqube-dev
sonar-scanner
-X
-Dsonar
.login
=
077ef775a8b4fe9ba722497ef0511ca6dcfb3fcd
>
sonar.log
sonar-scanner
-X
>
sonar.log
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