From 8727a5e10f93034be541dbc8b85507312c56fcb4 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Fri, 14 Feb 2020 14:51:02 -0500 Subject: [PATCH] Runs sonar-scanner after tests complete --- .travis.yml | 9 +++------ package-lock.json | 6 ++++++ package.json | 3 ++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 02f0c07..32bf1b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,6 @@ sudo: required dist: trusty -addons: - chrome: stable - sonarcloud: - organization: "sartography" - language: node_js node_js: @@ -18,9 +13,11 @@ before_script: install: - npm install +addons: + chrome: stable + script: - npm run ci - - sonar-scanner before_deploy: - docker build -t sartography/cr-connect-bpmn . diff --git a/package-lock.json b/package-lock.json index 2807303..e80a459 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12359,6 +12359,12 @@ } } }, + "sonar-scanner": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/sonar-scanner/-/sonar-scanner-3.1.0.tgz", + "integrity": "sha1-UcHBEB9UuYq8XYVlIJsdkjKXk0M=", + "dev": true + }, "sort-keys": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", diff --git a/package.json b/package.json index 9bb0f64..50fd063 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "e2e-wf:build": "cd docker && docker-compose pull && docker-compose build --no-cache && cd ..", "e2e-wf:start": "cd docker && docker-compose up -d && cd ..", "e2e-wf": "npm run e2e-wf:stop && npm run e2e-wf:clean && npm run e2e-wf:build && npm run e2e-wf:start", - "ci": "npm run lint && npm run test:coverage && npm run e2e:with-wf" + "ci": "npm run lint && npm run test:coverage && npm run e2e:with-wf && sonar-scanner" }, "private": true, "dependencies": { @@ -77,6 +77,7 @@ "postcss-short": "^5.0.0", "protractor": "^5.4.2", "puppeteer": "^1.20.0", + "sonar-scanner": "^3.1.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.5.3",