Add support SonarQube.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-12-19 11:58:20 +02:00
parent 2f78b46023
commit dfae4ef5e0
2 changed files with 90 additions and 2 deletions

View File

@ -6,7 +6,10 @@ matrix:
sudo: required sudo: required
compiler: clang compiler: clang
env: DEPLOY=false env: DEPLOY=false
cache: ccache cache:
- ccache
directories:
- '$HOME/.sonar/cache'
- os: osx - os: osx
compiler: clang compiler: clang
env: DEPLOY=true env: DEPLOY=true
@ -59,9 +62,11 @@ script:
- $CXX --version - $CXX --version
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make -j$(nproc); build-wrapper-linux-x86-64 --out-dir ../bw-outputs make -j$(nproc);
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$TRAVIS_BUILD_DIR/build/src/libs/vpropertyexplorer/bin:$TRAVIS_BUILD_DIR/build/src/libs/qmuparser/bin"; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$TRAVIS_BUILD_DIR/build/src/libs/vpropertyexplorer/bin:$TRAVIS_BUILD_DIR/build/src/libs/qmuparser/bin";
xvfb-run -a make --silent check TESTARGS="-silent"; xvfb-run -a make --silent check TESTARGS="-silent";
cd ..;
sonar-scanner;
else else
make -j1; make -j1;
fi fi
@ -88,3 +93,7 @@ deploy:
on: on:
all_branches: true all_branches: true
condition: $DEPLOY = true condition: $DEPLOY = true
addons:
sonarqube:
token:
secure: oH/mO3ocMzMRXi4krBKMbskzfR5r5DwyL9d+qr3AxKqlFLojvZDXBRogn/jnceDIuajol/OI/8uMxR5k+N241jj5/iEYun9t1Lejh+VOhgIEEuzPkeAFzlLoK91LWigqNuf0vTI2laaYxO9oRUIEKoTgBkkwMeMWu/8raIvUhyKyqHMofWp/9htuqHcSav3AN/Plu6wiC3Sg6wSalu4YNbL1hQBIKuZeRVmSMkh8f9llGPy33sljYDDCZ4RcyJlvLq+Ffh95tCnp88f8cSnxju1bEOEF/5iYQXoOwtCltRMy2XbkCm4lmdPwSU4EQdZ+2b4ka/Ptb3g5zQJ/RGSf6qYjR541XntvlqS5mDa254HbENnmP27X9eopbKTdYgyjBj63XAsOY5NaKFQSKdICxTFuC8/TrYD9xWxOqgzhkO/MNJYQqkR0vubgng6OninoFKZGPo/fFAU6CQS0b+8nRGsnD7g00MfWGPoS8YCLYehVSSORMic+Oo58c6lIgxkzCLoWvzmZONqF6RQ89gdQ5fiyHvq8rhzw6EBagBIRn/S8YCfRgJce5jQ5RgK66AiJpOYGKHfRp3CLlD3pO1hz6VTGMnqn1TplFbK6CgrM4oTTBZ7fqD9+BHOWk15tsj+Pcl8Vi9SjiK+XU2tVCePuNQNYF4x2QGD2Ftmul49pF0I=

79
sonar-project.properties Normal file
View File

@ -0,0 +1,79 @@
# must be unique in a given SonarQube instance
sonar.projectKey=dismine:valentina
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=Valentina
sonar.projectVersion=0.5a
sonar.projectDescription=
Valentina is a cross-platform patternmaking program which allows designers
to create and model patterns of clothing. This software allows pattern
creation, using either standard sizing tables or an individuals set of
measurements. It blends new technologies with traditional methods to create
a unique pattern making tool.
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
# exclude qt created files
sonar.exclusions=**/ui_*.h
# The build-wrapper output dir
sonar.cfamily.build-wrapper-output=bw-outputs
# List of the module identifiers
sonar.modules=module1,module2,module3,module4,module5,module6,module7,module8,module9,module10,module11,module12,module13,module14
module1.sonar.projectName=Valentina app
module1.sonar.projectBaseDir=src/app/valentina
module1.sonar.sources=.
module2.sonar.projectName=Tape app
module2.sonar.projectBaseDir=src/app/tape
module2.sonar.sources=.
module3.sonar.projectName=Fervor static library
module3.sonar.projectBaseDir=src/libs/fervor
module3.sonar.sources=.
module4.sonar.projectName=QMuparser - math parser library
module4.sonar.projectBaseDir=src/libs/qmuparser
module4.sonar.sources=.
module5.sonar.projectName=VDXF static library
module5.sonar.projectBaseDir=src/libs/vdxf
module5.sonar.sources=.
module6.sonar.projectName=VFormat static library
module6.sonar.projectBaseDir=src/libs/vformat
module6.sonar.sources=.
module7.sonar.projectName=VGeometry static library
module7.sonar.projectBaseDir=src/libs/vgeometry
module7.sonar.sources=.
module8.sonar.projectName=VLayout static library
module8.sonar.projectBaseDir=src/libs/vlayout
module8.sonar.sources=.
module9.sonar.projectName=VMisc static library
module9.sonar.projectBaseDir=src/libs/vmisc
module9.sonar.sources=.
module10.sonar.projectName=VObj static library
module10.sonar.projectBaseDir=src/libs/vobj
module10.sonar.sources=.
module11.sonar.projectName=VPatternDB static library
module11.sonar.projectBaseDir=src/libs/vpatterndb
module11.sonar.sources=.
module12.sonar.projectName=VPropertyExplorer - property explorer library
module12.sonar.projectBaseDir=src/libs/vpropertyexplorer
module12.sonar.sources=.
module13.sonar.projectName=VTools static library
module13.sonar.projectBaseDir=src/libs/vtools
module13.sonar.sources=.
module14.sonar.projectName=VWidgets static library
module14.sonar.projectBaseDir=src/libs/vwidgets
module14.sonar.sources=.