Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
Fix support of Node 6 (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
vilchik-elena authored Jan 12, 2018
1 parent 8a930ce commit 2bcef09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: node_js

node_js:
- "8"
- "6"

jdk:
- oraclejdk8
Expand Down
4 changes: 3 additions & 1 deletion sonarts-core/src/runner/sonarUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export function stringifyToStream(stream: NodeJS.WritableStream, data: any[]) {
stream.write("{");

let firstProp = true;
Object.entries(element).forEach(([key, value]) => {

Object.keys(element).forEach(key => {
const value = element[key];
if (value !== undefined) {
if (!firstProp) {
stream.write(",");
Expand Down
5 changes: 5 additions & 0 deletions sonarts_mvn_build_deploy_analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
# - ARTIFACTORY_DEPLOY_USERNAME: login to deploy to $ARTIFACTORY_DEPLOY_REPO
# - ARTIFACTORY_DEPLOY_PASSWORD: password to deploy to $ARTIFACTORY_DEPLOY_REPO

# deploy and analyze only on one axes of node versions
if [ "${TRAVIS_NODE_VERSION}" != "8" ]; then
exit 0
fi

set -euo pipefail

#install maven
Expand Down

0 comments on commit 2bcef09

Please sign in to comment.