]> source.dussan.org Git - sonarqube.git/commitdiff
Cirrus - Avoid runing eslint 2 times on CI
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 17 Sep 2018 07:30:56 +0000 (09:30 +0200)
committerSonarTech <sonartech@sonarsource.com>
Mon, 24 Sep 2018 18:20:58 +0000 (20:20 +0200)
server/sonar-docs/build.gradle
server/sonar-vsts/package.json
server/sonar-web/package.json
server/sonar-web/src/main/js/apps/settings/store/encryptionPage/actions.js

index 73b8598d1886d164305472b759a52d53c7e81064..088b00bb2698de9b8ad83ce500545ad046ae0c6e 100644 (file)
@@ -18,9 +18,10 @@ yarn_run {
   args = ['build']
 }
 
-task yarn_validate() {
+task yarn_validate_ci() {
 
 }
+
 task "yarn_lint-report"() {
 
 }
index 1675be0ffa2e136e3ad13cc0a0b705f24220c9a3..e5ec1196ec40f6a516ba2e427568a91815c801fc 100644 (file)
     "build": "node scripts/build.js",
     "test": "jest --passWithNoTests",
     "format": "prettier --write --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
+    "format-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
     "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
     "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
     "ts-check": "tsc --noEmit",
-    "prettier-check": "prettier --list-different 'src/main/js/!(libs)/**/*.{js,ts,tsx,css}'",
-    "validate": "yarn lint && yarn ts-check && yarn prettier-check && yarn test"
+    "validate": "yarn lint && yarn ts-check && yarn format-check && yarn test",
+    "validate-ci": "yarn lint-report && yarn ts-check && yarn format-check && yarn test"
   },
   "engines": {
     "node": ">=6"
index 1ff33ce42dab5198942580dab1e5e21bf016b58f..f8bcb27794b8cd283652da72659b40b92b603a40 100644 (file)
   "scripts": {
     "start": "node scripts/start.js",
     "build": "node scripts/build.js",
-    "build-fast": "node scripts/build.js --fast",
     "test": "jest",
     "format": "prettier --write --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
+    "format-check": "yarn prettier --list-different 'src/main/js/**/*.{js,ts,tsx,css}'",
     "lint": "eslint --ext js,ts,tsx --quiet src/main/js",
     "lint-report": "eslint --ext js,ts,tsx -f json -o eslint-report.json src/main/js",
     "flow-check": "flow check src/main/js",
     "ts-check": "tsc --noEmit",
-    "validate": "yarn lint && yarn flow-check && yarn ts-check && yarn test",
+    "validate": "yarn lint && yarn flow-check && yarn ts-check && yarn format-check && yarn test",
+    "validate-ci": "yarn lint-report && yarn flow-check && yarn ts-check && yarn format-check && yarn test",
     "precommit": "yarn ts-check && lint-staged && yarn flow-check"
   },
   "engines": {
index f20e9e91c9060d46a8e2df2e09dda42244d83d02..a8123a69c84a6f198be70dd29e7fb23864bc0749 100644 (file)
  */
 import * as api from '../../../../api/settings';
 import { parseError } from '../../../../helpers/request';
-import {
-  addGlobalErrorMessage,
-  closeAllGlobalMessages
-} from '../../../../store/globalMessages';
+import { addGlobalErrorMessage, closeAllGlobalMessages } from '../../../../store/globalMessages';
 
 export const UPDATE_ENCRYPTION = 'UPDATE_ENCRYPTION';