Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

Add SonarCloud.io #478

Merged
merged 7 commits into from
Aug 28, 2018
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
dist: trusty
sudo: false

language: cpp

env:
matrix:
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=DEBUG
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=RELEASE
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=DEBUG
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=RELEASE
- OS_TYPE=debian7 CMAKE_BUILD_TYPE=RELEASE
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=DEBUG SONAR_SCANNER=OFF
- OS_TYPE=debian9 CMAKE_BUILD_TYPE=RELEASE SONAR_SCANNER=OFF
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=DEBUG SONAR_SCANNER=ON
- OS_TYPE=debian8 CMAKE_BUILD_TYPE=RELEASE SONAR_SCANNER=OFF
- OS_TYPE=debian7 CMAKE_BUILD_TYPE=RELEASE SONAR_SCANNER=OFF
# - OS_TYPE=debian7 CMAKE_BUILD_TYPE=DEBUG
# - OS_TYPE=win32
# etc
Expand All @@ -19,6 +20,12 @@ notifications:
services:
- docker

addons:
sonarcloud:
organization: "tango-controls"
token:
secure: ${SONAR_TOKEN}

before_install:
- chmod +x .travis/${OS_TYPE}/before_install.sh
- .travis/${OS_TYPE}/before_install.sh
Expand All @@ -38,6 +45,9 @@ before_script:
script:
- .travis/${OS_TYPE}/run.sh

after_success:
- test ${SONAR_SCANNER} = "ON" && sonar-scanner

deploy:
- provider: script
script: bash .travis/deploy.sh
Expand Down
11 changes: 11 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
sonar.projectKey=org.tango-controls:cpp-tango:tango-9-lts
sonar.projectName=cppTango
sonar.projectVersion=9LTS

# sonar.language=c++

sonar.sources=cppapi

sonar.sourceEncoding=UTF-8

sonar.cfamily.build-wrapper-output.bypass=true