From 44fcc41deb59e597a8cd1fb44ae13cc0a66547b5 Mon Sep 17 00:00:00 2001 From: Felipe Ribeiro Date: Wed, 21 Feb 2018 11:13:58 +0100 Subject: [PATCH] Enable Sonarcloud --- .travis.yml | 10 +++++++--- sonar-project.properties | 12 ++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 sonar-project.properties diff --git a/.travis.yml b/.travis.yml index f247b3f..c4d4971 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,12 @@ language: node_js sudo: false node_js: - - '6' - - '7' - '8' -script: "make" + - '9' +script: + - make + - sonar-scanner after_success: "make coveralls" +addons: + sonarcloud: + organization: "felipernb-github" diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..507879e --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +# must be unique in a given SonarQube instance +sonar.projectKey=algorithmsjs +# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. +sonar.projectName=algorithms.js +sonar.projectVersion=0.11.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. +sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8