Skip to content

Commit

Permalink
chore(ci): add node 12 (#872)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
misterdev authored and ematipico committed May 22, 2019
1 parent f0031fd commit 11554d6
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 55 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Expand Up @@ -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:
Expand Down
22 changes: 13 additions & 9 deletions azure-pipelines-template.yml
Expand Up @@ -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'
codeCoverageTool: "cobertura"
summaryFileLocation: "**/coverage/cobertura-coverage.xml"
displayName: "Publish code coverage results"
100 changes: 59 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 11554d6

Please sign in to comment.