From 11554d6b61baa0dc4a1b78a8e3aad1a33c751041 Mon Sep 17 00:00:00 2001 From: Devid Farinelli Date: Wed, 22 May 2019 10:39:18 +0200 Subject: [PATCH] chore(ci): add node 12 (#872) * chore(ci): add node 12 * chore(ci): add stable and improve azure config * chore(azure pipeline): fix configuration * chore(azure): revert npm ci * chore(azure): revert changes to npm installation * chore(azure): change to npm ci * chore(azure): try boostrap:ci script * chore(azure): revert to npm install & refactor * chore(travis): install node 12 * chore(travis): remove "stable" in favour of version * chore(ci): remove node 6 from travis & azure * chore(bundlesize): update to 1.17.2 --- .travis.yml | 12 +++-- azure-pipelines-template.yml | 22 ++++---- package-lock.json | 100 +++++++++++++++++++++-------------- package.json | 2 +- 4 files changed, 81 insertions(+), 55 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1c1e5a9e6f1..51d18a6c9ef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,21 +3,25 @@ notifications: email: false language: node_js node_js: + - "12" - "10" - "8" - - "6" cache: directories: - ~/.npm matrix: + include: - os: linux - node_js: "10" + node_js: "12" + env: JOB_PART=lint + - os: linux + node_js: "12" env: JOB_PART=integration - os: linux - node_js: "8" + node_js: "10" env: JOB_PART=integration - os: linux - node_js: "6" + node_js: "8" env: JOB_PART=integration before_install: diff --git a/azure-pipelines-template.yml b/azure-pipelines-template.yml index e5423adfb18..60f1802c26e 100644 --- a/azure-pipelines-template.yml +++ b/azure-pipelines-template.yml @@ -5,34 +5,38 @@ jobs: strategy: maxParallel: 3 matrix: + node-12: + node_version: ^12.0.0 node-10: node_version: ^10.10.0 node-8: node_version: ^8.12.0 - node-6: - node_version: ^6.14.4 steps: - task: NodeTool@0 - displayName: "Install Node.js" inputs: versionSpec: $(node_version) + displayName: "Install Node.js" - script: | npm install -g npm@latest displayName: "Install npm" - script: | - npm install + node -v + npm -v + displayName: "Print version" + - script: | + npm ci npm run bootstrap displayName: "Lerna bootstrap" - script: | npm run test displayName: "Run tests" - task: PublishTestResults@2 - displayName: 'Publish Test Results' inputs: - testResultsFiles: '**junit*.xml' + testResultsFiles: "**junit*.xml" testRunTitle: TestRun $ {{ parameters.name }} $(node_version) + displayName: "Publish Test Results" - task: PublishCodeCoverageResults@1 - displayName: 'Publish code coverage results' inputs: - codeCoverageTool: 'cobertura' - summaryFileLocation: '**/coverage/cobertura-coverage.xml' \ No newline at end of file + codeCoverageTool: "cobertura" + summaryFileLocation: "**/coverage/cobertura-coverage.xml" + displayName: "Publish code coverage results" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c643b13d8d0..7b47fe3b74d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3337,12 +3337,12 @@ "dev": true }, "axios": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.17.1.tgz", - "integrity": "sha1-LY4+XQvb1zJ/kbyBT1xXZg+Bgk0=", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", "dev": true, "requires": { - "follow-redirects": "^1.2.5", + "follow-redirects": "^1.3.0", "is-buffer": "^1.1.5" } }, @@ -4333,13 +4333,13 @@ "dev": true }, "brotli-size": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/brotli-size/-/brotli-size-0.0.1.tgz", - "integrity": "sha1-jBruoBzSLzWbBIlRGFvVOf8Mgp8=", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/brotli-size/-/brotli-size-0.1.0.tgz", + "integrity": "sha512-5ny7BNvpe2TSmdafF1T9dnFYp3AIrJ8qJt29K0DQJzORlK38LBim/CmlY26JtreV6SWmXza7Oa+9m61SzvxR0Q==", "dev": true, "requires": { "duplexer": "^0.1.1", - "iltorb": "^1.0.9" + "iltorb": "^2.4.3" } }, "browser-process-hrtime": { @@ -4535,21 +4535,37 @@ "dev": true }, "bundlesize": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/bundlesize/-/bundlesize-0.17.1.tgz", - "integrity": "sha512-p5I5Tpoug9aOVGg4kQETMJ8xquY66mX9XI19kXkkAFnmDhDXwSF+1jq1OjBGz7h27TAulM3k2wLEJPvickTt0A==", + "version": "0.17.2", + "resolved": "https://registry.npmjs.org/bundlesize/-/bundlesize-0.17.2.tgz", + "integrity": "sha512-cJAZ6wvs6IHQCnUn9kTme4GL+ahoICjcS0QPcGTj61Hl4bCc8wKkkVLUote4k/1yxa0+kUIrIo9wyNJ+XIciEw==", "dev": true, "requires": { - "axios": "^0.17.0", - "brotli-size": "0.0.1", - "bytes": "^3.0.0", + "axios": "^0.18.0", + "brotli-size": "0.1.0", + "bytes": "^3.1.0", "ci-env": "^1.4.0", - "commander": "^2.11.0", + "commander": "^2.20.0", "github-build": "^1.2.0", - "glob": "^7.1.2", + "glob": "^7.1.4", "gzip-size": "^4.0.0", "prettycli": "^1.4.3", "read-pkg-up": "^3.0.0" + }, + "dependencies": { + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } } }, "byline": { @@ -6423,9 +6439,9 @@ "dev": true }, "detect-libc": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-0.2.0.tgz", - "integrity": "sha1-R/31ZzSKF+wl/L8LnkRjSKdvn7U=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true }, "detect-newline": { @@ -7178,9 +7194,9 @@ } }, "expand-template": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-1.1.1.tgz", - "integrity": "sha512-cebqLtV8KOZfw0UI8TEFWxtczxxC1jvyUvx6H4fyp1K1FN7A4Q+uggVUlOsI1K8AGU0rwOGqP8nCapdrw8CYQg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", "dev": true }, "expand-tilde": { @@ -9380,15 +9396,16 @@ } }, "iltorb": { - "version": "1.3.10", - "resolved": "https://registry.npmjs.org/iltorb/-/iltorb-1.3.10.tgz", - "integrity": "sha512-nyB4+ru1u8CQqQ6w7YjasboKN3NQTN8GH/V/eEssNRKhW6UbdxdWhB9fJ5EEdjJfezKY0qPrcwLyIcgjL8hHxA==", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/iltorb/-/iltorb-2.4.3.tgz", + "integrity": "sha512-cr/kC07Cf9sW3TWH7yUxV2QkNjby4LMCsXGmxPCQs5x//QzTpF3GLPNY7L66G+DkNGaTRCgY+vYZ+dyAcuDOnQ==", "dev": true, "requires": { - "detect-libc": "^0.2.0", - "nan": "^2.6.2", - "node-gyp": "^3.6.2", - "prebuild-install": "^2.3.0" + "detect-libc": "^1.0.3", + "nan": "^2.13.2", + "npmlog": "^4.1.2", + "prebuild-install": "^5.3.0", + "which-pm-runs": "^1.0.0" } }, "import-fresh": { @@ -11989,6 +12006,12 @@ "to-regex": "^3.0.1" } }, + "napi-build-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.1.tgz", + "integrity": "sha512-boQj1WFgQH3v4clhu3mTNfP+vOBxorDlE8EKiMjUlLG3C4qAESnn9AxIOkFgTR2c9LtzNjPrjS60cT27ZKBhaA==", + "dev": true + }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", @@ -13112,34 +13135,29 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, "prebuild-install": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-2.5.3.tgz", - "integrity": "sha512-/rI36cN2g7vDQnKWN8Uzupi++KjyqS9iS+/fpwG4Ea8d0Pip0PQ5bshUNzVwt+/D2MRfhVAplYMMvWLqWrCF/g==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.3.0.tgz", + "integrity": "sha512-aaLVANlj4HgZweKttFNUVNRxDukytuIuxeK2boIMHjagNJCiVKWFsKF4tCE3ql3GbrD2tExPQ7/pwtEJcHNZeg==", "dev": true, "requires": { "detect-libc": "^1.0.3", - "expand-template": "^1.0.2", + "expand-template": "^2.0.3", "github-from-package": "0.0.0", "minimist": "^1.2.0", "mkdirp": "^0.5.1", - "node-abi": "^2.2.0", + "napi-build-utils": "^1.0.1", + "node-abi": "^2.7.0", "noop-logger": "^0.1.1", "npmlog": "^4.0.1", "os-homedir": "^1.0.1", "pump": "^2.0.1", - "rc": "^1.1.6", + "rc": "^1.2.7", "simple-get": "^2.7.0", "tar-fs": "^1.13.0", "tunnel-agent": "^0.6.0", "which-pm-runs": "^1.0.0" }, "dependencies": { - "detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", - "dev": true - }, "pump": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", diff --git a/package.json b/package.json index 6a06e7a687c..ebe8695759b 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "@typescript-eslint/parser": "^1.6.0", "babel-preset-env": "^1.7.0", "babel-preset-jest": "^24.3.0", - "bundlesize": "^0.17.0", + "bundlesize": "^0.17.2", "codecov": "^3.1.0", "commitizen": "^3.0.7", "commitlint-config-cz": "^0.10.1",