Skip to content

Commit

Permalink
SonarQube.com integration
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Dec 6, 2016
1 parent 17be34e commit f557aa2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -1,8 +1,16 @@
language: csharp
solution: src/NLog.mono.sln
dist: trusty
addons:
sonarqube: true
branches:
- sonarqube
- master
install:
- nuget restore src/NLog.mono.sln
- nuget install xunit.runners -Version 1.9.2 -OutputDirectory testrunner
script:
- xbuild /p:Configuration=Release src/NLog.mono.sln
- sonar-scanner
- mono ./testrunner/xunit.runners.1.9.2/tools/xunit.console.clr4.exe "./build/bin/Release/Mono 2.x/NLog.UnitTests.dll"

14 changes: 14 additions & 0 deletions sonar-project.properties
@@ -0,0 +1,14 @@
# must be unique in a given SonarQube instance
sonar.projectKey=nlog
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=NLog
sonar.projectVersion=4.4

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=src

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

0 comments on commit f557aa2

Please sign in to comment.