Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add node 12 #872

Merged
merged 14 commits into from May 22, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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