Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VirtualFluids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
iRMB
VirtualFluids
Commits
a1a1cd55
Commit
a1a1cd55
authored
4 years ago
by
Soeren Peters
Browse files
Options
Downloads
Patches
Plain Diff
Enable sonarscanner job, adapt the sonarqube url and add the projectkey as a gitlab variable.
parent
7712951b
Loading
Loading
1 merge request
!3
Add manual numerical gpu test and enable the sonar-scanner again.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-6
7 additions, 6 deletions
.gitlab-ci.yml
sonar-project.properties
+8
-5
8 additions, 5 deletions
sonar-project.properties
with
15 additions
and
11 deletions
.gitlab-ci.yml
+
7
−
6
View file @
a1a1cd55
...
@@ -488,16 +488,15 @@ gcov_to_elladan:
...
@@ -488,16 +488,15 @@ gcov_to_elladan:
###############################################################################
###############################################################################
# sonar-scanner runs sonar-project.properties
# sonar-scanner runs sonar-project.properties
# the reports in this file needs to match the artifacts.
# the reports in this file needs to match the artifacts.
# This job only run on the development branch of the parent repository, not on forks!
sonar-scanner
:
sonar-scanner
:
stage
:
deploy
stage
:
deploy
only
:
only
:
refs
:
-
develop
-
develop
#- develop@git.rz.tu-bs.de/irmb/VirtualFluids_dev
when
:
manual
variables
:
variables
:
SONAR_HOST_URL
:
"
http://
finrod
.irmb.bau.tu-bs.de/sonarqube"
SONAR_HOST_URL
:
"
http://
gitlab-runner01
.irmb.bau.tu-bs.de/sonarqube
/
"
needs
:
[
"
cppcheck"
,
"
clang-tidy"
,
"
gcov_gcc_9"
,
"
gcc_9_rebuild"
]
needs
:
[
"
cppcheck"
,
"
clang-tidy"
,
"
gcov_gcc_9"
,
"
gcc_9_rebuild"
]
...
@@ -507,7 +506,9 @@ sonar-scanner:
...
@@ -507,7 +506,9 @@ sonar-scanner:
-
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.0.0.1744-linux.zip
-
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.0.0.1744-linux.zip
-
unzip sonar-scanner-cli-4.0.0.1744-linux.zip
-
unzip sonar-scanner-cli-4.0.0.1744-linux.zip
-
cd sonar-scanner-4.0.0.1744-linux/
-
cd sonar-scanner-4.0.0.1744-linux/
-
echo 'sonar.host.url=http://finrod.irmb.bau.tu-bs.de/sonarqube' >> conf/sonar-scanner.properties
-
echo 'sonar.projectKey=$SONARQUBE_PROJECT_KEY_DEVELOP' >> $CI_PROJECT_DIR/sonar-project.properties
-
cat $CI_PROJECT_DIR/sonar-project.properties
-
echo 'sonar.host.url=$SONAR_HOST_URL' >> conf/sonar-scanner.properties
-
echo 'sonar.sourceEncoding=UTF-8' >> conf/sonar-scanner.properties
-
echo 'sonar.sourceEncoding=UTF-8' >> conf/sonar-scanner.properties
-
cat conf/sonar-scanner.properties
-
cat conf/sonar-scanner.properties
-
export PATH+=:$(pwd)/bin
-
export PATH+=:$(pwd)/bin
...
...
This diff is collapsed.
Click to expand it.
sonar-project.properties
+
8
−
5
View file @
a1a1cd55
# must be unique in a given SonarQube instance
# must be unique in a given SonarQube instance
sonar.projectKey
=
vf:project:develop
sonar.projectKey
=
vf:project:develop
# --- optional properties ---
# defaults to project key
sonar.projectName
=
VirtualFluids_dev
sonar.projectName
=
VirtualFluids_dev
# defaults to 'not provided'
#
sonar.projectVersion=
1.0
sonar.projectVersion
=
0.1
sonar.language
=
cxx
sonar.language
=
cxx
...
@@ -36,4 +34,9 @@ sonar.cxx.gcc.reportPath=build/gcc_warnings.txt
...
@@ -36,4 +34,9 @@ sonar.cxx.gcc.reportPath=build/gcc_warnings.txt
sonar.cxx.funccomplexity.threshold
=
10
sonar.cxx.funccomplexity.threshold
=
10
sonar.cxx.funcsize.threshold
=
20
sonar.cxx.funcsize.threshold
=
20
\ No newline at end of file
# project key
# must be unique in given sonarqube instance
# -> is insert by gitlab CI
# sonar.projectKey=$SONARQUBE_PROJECT_KEY_DEVELOP
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