Skip to content

Commit 3cd87c2

Browse files
committed
Enable sonarcloud integration in Travis CI config
1 parent cd4be6b commit 3cd87c2

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
sudo: required
22

3-
language: minimal
3+
# Required by SonarCloud - see https://docs.travis-ci.com/user/sonarcloud/
4+
language: java
5+
dist: trusty
6+
47
services: docker
58

9+
addons:
10+
sonarcloud:
11+
organization: "simverge"
12+
token:
13+
secure: $SONAR_TOKEN
14+
615
env:
716
- DISTRO=alpine BUILD_TYPE=Release
817
- DISTRO=alpine BUILD_TYPE=Debug
@@ -14,4 +23,5 @@ before_install:
1423

1524
script:
1625
- chmod u+x $TRAVIS_BUILD_DIR/tests/travis/script.sh
17-
- docker run -e TRAVIS_BRANCH -e BUILD_TYPE -e DISTRO -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:$DISTRO /pdalc/tests/travis/script.sh
26+
- docker run -e TRAVIS_BRANCH -e BUILD_TYPE -e DISTRO -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:$DISTRO /pdalc/tests/travis/script.sh
27+
- sonar-scanner

sonar-project.properties

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SonarQube/SonarCloud properties for pdal-c
2+
3+
# must be unique in a given SonarQube instance
4+
sonar.projectKey=Simverge_pdal-c
5+
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
6+
sonar.projectName=pdal-c
7+
sonar.projectVersion=1.8
8+
9+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
# This property is optional if sonar.modules is set.
11+
sonar.sources=source
12+
13+
# Encoding of the source code. Default is default system encoding
14+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)