Skip to content

Commit

Permalink
feat: Drop support for Node.js <6.x, update dependencies (#566)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Older versions of Node.js are no longer supported

Includes most updates with the exception of semantic-release which breaks on windows. To be investigated in a later release.
  • Loading branch information
LinusU authored and jimthedev committed Sep 30, 2018
1 parent 0d76887 commit a70c063
Show file tree
Hide file tree
Showing 38 changed files with 4,861 additions and 3,503 deletions.
6 changes: 0 additions & 6 deletions .eslintrc
Expand Up @@ -4,12 +4,6 @@
"brace-style": 0,
"comma-dangle": 0,
"indent": 0,
"no-duplicate-imports": 0,
"no-multiple-empty-lines": 0,
"no-path-concat": 0,
"no-throw-literal": 0,
"no-trailing-spaces": 0,
"no-unused-vars": 0,
"operator-linebreak": 0,
"padded-blocks": 0,
"quotes": 0,
Expand Down
19 changes: 3 additions & 16 deletions .travis.yml
@@ -1,36 +1,23 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
branches:
except:
- /^v\d+\.\d+\.\d+$/
only:
- master
notifications:
email: false
node_js:
- '10'
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
before_install:
- git config --global user.name "TravisCI"
- git config --global user.email "commitizen@gmail.com"
- npm i -g npm@^2.0.0
before_script:
- npm prune
- git version
script:
# Only run linting on Node.js 4.x and up
- if [ $(node -pe 'process.version.match(/v(\d+)\./)[1] >= 4') == 'true' ]; then npm run lint; fi
- npm run lint
- npm run test
- npm run check-coverage
after_success:
- npm run report-coverage
- npm run test:windows
- npm run semantic-release
env:
global:
Expand Down
29 changes: 0 additions & 29 deletions appveyor.yml

This file was deleted.

18 changes: 18 additions & 0 deletions jobs/build.yml
Expand Up @@ -8,9 +8,27 @@ parameters:
jobs:
- job: ${{ parameters.name }}
pool: ${{ parameters.pool }}
strategy:
maxParallel: 3
matrix:
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)
- script: git config --global user.email "example@example.com"
- script: git config --global user.name "Example Git User"
- script: npm install
- script: npm run build
- script: npm test
- task: PublishBuildArtifacts@1
displayName: Publish packages
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'

0 comments on commit a70c063

Please sign in to comment.