diff --git a/.travis.yml b/.travis.yml index 21c0234e5f..8e704abe08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,18 @@ node_js: - '6' before_script: - git clone -b develop https://github.com/ONLYOFFICE/web-apps.git ../web-apps +addons: + sonarcloud: + organization: "onlyoffice" + token: + secure: "v/VxlPNCV70ugPc873YY5AETeMiHHcln5QUUP3WikYoZWHQQuUkAfUwvRIwRS+hgtopxjUJzywDkIZhX2w0VjCP0UxYjSXM84X3FzYsJx0H/cyOo2eDxMDfiZMQ2fQ7WACD6MPpwDMQLnGqZGtBj5IxjF3ah9APARBH2OwUJSYHlrH1Mb038xAFcs6Qyo3M+P80OgyuNbjpJ6PaKm5tsnAMXIYNuAg934DdlwIR05Jrt59LulYsPD7nFP/Zb10Vs4aY6UYhf+TQRyi/wHVnmL2b93KjBCrVqh2AC5oKU5n0Yqxshf5lcYebddtVJjNdKmEFxvKL4Z9f3GZIa5RNM0EkbN3eH3VP2+2kK/HQXurpuBk+uRxOL/ZXpwbVcAA5BG3NPlBVNFjE3Sg3GpOXNOVALjZZI1l/GlwCUERYeuPVaK8PxuE2DJBYoQLx6D2JiRLGlKGyBUOEmrGU13drdeQR6HNsulYYTz4woPMoF55tUT1JMNat53BP4evQvwnaTZvbMYGKjvGwu9c1Q85St6ozhVL2jAHFeL5FAriSTsGKHWMEHqYUL01ofFjTVwSLj9zlO4LyXzUpOnuJ/QLW7wLBtK9dJiJcqVJVdnZAcxo8H47As07+utVim3k33TTfJTTNY0Q1ZaOyYWzXvIEB7cDiYOunxXfMpInyTQ6XYxKQ=" + branches: + - develop jobs: include: + - stage: SonarQube Scanner + script: + - sonar-scanner - stage: Formulas tests script: - npm install -g node-qunit-phantomjs diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000000..8cb1e803e3 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,13 @@ +# must be unique in a given SonarQube instance +sonar.projectKey=sdkjs:develop +# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. +sonar.projectName=sdkjs +sonar.projectVersion=1.0 +sonar.branch=develop + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. + sonar.sources=cell,slide,word + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8