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

Fix support of Node 6 #434

Merged
merged 3 commits into from
Jan 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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