Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Update test projects' property files #27

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 19 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: c
language: python
python:
- "3.6"

# Default environment: Container-based (sudo-less) Ubuntu Trusty 14.04.
os: linux
Expand All @@ -12,6 +14,8 @@ install:
- tar -xzf /tmp/pandoc.tar.gz
- export PATH="$PWD/pandoc-2.2.3.2/bin:$PATH"

- pip3 install requests

# Default job task: run tests as defined in the $OPT environment variable.
# Jobs can redefine the 'script' stage in the matrix below.
script:
Expand All @@ -23,6 +27,18 @@ matrix:
- JOBNAME="Build test"
script: tools/build.py --dist
- env:
- JOBNAME="Regression test"
script: python3 tools/run-test.py --init --print-log -sv 7.5
- JOBNAME="Regression test cpp"
script: python3 tools/run-test.py --init --print-log -sv 7.5 -ra -cf client -prjf test -scv 4.0.0.1744 -l cpp
- env:
- JOBNAME="Regression test csharp"
script: python3 tools/run-test.py --init --print-log -sv 7.5 -ra -cf client -prjf test -scv 4.0.0.1744 -l csharp
- env:
- JOBNAME="Regression test java"
script: python3 tools/run-test.py --init --print-log -sv 7.5 -ra -cf client -prjf test -scv 4.0.0.1744 -l java
- env:
- JOBNAME="Regression test python"
script: python3 tools/run-test.py --init --print-log -sv 7.5 -ra -cf client -prjf test -scv 4.0.0.1744 -l python
- env:
- JOBNAME="Regression test rpg"
script: python3 tools/run-test.py --init --print-log -sv 7.5 -ra -cf client -prjf test -scv 4.0.0.1744 -l rpg
fast_finish: true
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ public void execute(SensorContext sensorContext) {
runSourceMeter(commands);
}

this.projectName = FileHelper.getStringFromConfiguration(this.configuration, "sonar.projectKey");
this.projectName = StringUtils.replace(this.projectName, ":", "_");
String analyseMode = FileHelper.getStringFromConfiguration(configuration, "sonar.analysis.mode");
if ("incremental".equals(analyseMode)) {
LOG.warn("Incremental mode is on. There are no metric based (INFO level) issues in this mode.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=LCOM5AccessesAttribute
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=LCOM5MethodCall
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=LCOM5global
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=LCOM5template
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=McCCfunctionallstatementlinux
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=McCCfunctionallstatementwindows
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=McCCmethodallstatementlinux
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=McCCmethodallstatementwindows
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEclassmax
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEfunctionallstatementlinux
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEfunctionallstatementwindows
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEfunctionnestinglinux
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEfunctionnestingwindows
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEmethodallstatementlinux
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NLNLEmethodallstatementwindows
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=WMCsum
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=CBOalledges
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NIIGlobalFunction
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NIIMemberFunction
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOIGlobalFunction
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOIMemberFunction
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=RFC
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=RFCwi
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Attributes
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=CSU
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Cast
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Conditional
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Enum
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=ExceptionHandling
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Iteration
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Label
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Lambda
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Namespace
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=OperatorOverloading
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Operators
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=ParameterAndReturn
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=PointerAndRefs
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Scope
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Template
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Typedef
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=Types
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOA
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOC
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOD
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=NOP
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TLLOCsimpleTest
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNAsimple
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNCLsimple
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNCLwithMacro
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNMsimpleTest
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNPKsimple
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNPKwithMacro
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNSTsimple
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=TNUNsimple
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
2 changes: 2 additions & 0 deletions test/cpp/LIM2Metrics/SizeMetrics/AD/sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=AD
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
2 changes: 2 additions & 0 deletions test/cpp/LIM2Metrics/SizeMetrics/CD/sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=CD
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=CLOC
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ sonar.projectName=DLOC
sonar.sources=.
sonar.language=cpp
sm.cpp.buildfile=build.bat
sm.uploadAllMetrics=true
sm.cpp.skipToolchain=true
Loading