Skip to content

Commit

Permalink
Add sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Nov 9, 2017
1 parent 78b568f commit c061365
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .travis.yml
Expand Up @@ -4,7 +4,20 @@ php:
- 7.0
- 7.1
addons:
firefox: "47.0.1"
firefox: "stable"
sonarcloud:
organization: "kunena-forum"
token:
secure: "5236152baa004029e309405ee0af8e30ac1add88"
branches:
- K5.1
jdk:
- oraclejdk8
script:
- sonar-scanner
cache:
directories:
- '$HOME/.sonar/cache'
before_script:
- sudo sed -i '1s/^/127.0.0.1 localhost\n/' /etc/hosts
- sudo apt-get update -qq
Expand Down Expand Up @@ -59,3 +72,4 @@ script:
- vendor/bin/phing -f build/phing/build.xml
- mv tests/acceptance.suite.dist.yml tests/acceptance.suite.yml
- vendor/bin/robo run:tests --use-htaccess
- sonar-scanner
16 changes: 16 additions & 0 deletions sonar-project.properties
@@ -0,0 +1,16 @@
# must be unique in a given SonarQube instance
sonar.projectKey=K5.1
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=kunena-forum
sonar.projectVersion=1.0.0-beta1

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set.
sonar.sources=./src

sonar.tests=./tests
sonar.php.tests.reportPath=./coverage/report-junit.xml
sonar.php.coverage.reportPath=./coverage/report-clover.xml

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit c061365

Please sign in to comment.