Skip to content

Commit

Permalink
fix: drop support for node.js 4.x and 9.x (#106)
Browse files Browse the repository at this point in the history
* fix: drop support for node.js 4.x and 9.x

* fix my blunder
  • Loading branch information
JustinBeckwith authored and alexander-fenster committed Jul 10, 2018
1 parent 5250c12 commit 06c239e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 36 deletions.
42 changes: 8 additions & 34 deletions packages/google-cloud-node/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,24 @@ workflows:
version: 2
tests:
jobs: &workflow_jobs
- node4:
- node6:
filters: &all_commits
tags:
only: /.*/
- node6:
filters: *all_commits
- node8:
filters: *all_commits
- node9:
filters: *all_commits
- node10:
filters: *all_commits
- lint:
requires:
- node4
- node6
- node8
- node9
- node10
filters: *all_commits
- docs:
requires:
- node4
- node6
- node8
- node9
- node10
filters: *all_commits
- system_tests:
Expand Down Expand Up @@ -62,9 +54,9 @@ workflows:
only: master
jobs: *workflow_jobs
jobs:
node4:
node6:
docker:
- image: 'node:4'
- image: 'node:6'
user: node
steps: &unit_tests_steps
- checkout
Expand All @@ -86,28 +78,14 @@ jobs:
npm install
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run:
name: Run unit tests.
command: npm test
- run:
name: Submit coverage data to codecov.
command: node_modules/.bin/codecov
when: always
node6:
docker:
- image: 'node:6'
user: node
steps: *unit_tests_steps
- run: npm test
- run: node_modules/.bin/codecov

node8:
docker:
- image: 'node:8'
user: node
steps: *unit_tests_steps
node9:
docker:
- image: 'node:9'
user: node
steps: *unit_tests_steps
node10:
docker:
- image: 'node:10'
Expand Down Expand Up @@ -201,9 +179,5 @@ jobs:
user: node
steps:
- checkout
- run:
name: Set NPM authentication.
command: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run:
name: Publish the module to npm.
command: npm publish
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run: npm publish
2 changes: 1 addition & 1 deletion packages/google-cloud-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"repository": "googleapis/nodejs-speech",
"main": "./src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-node/samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Google Inc.",
"repository": "googleapis/nodejs-speech",
"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"scripts": {
"test": "ava -T 20s --verbose system-test/*.test.js"
Expand Down

0 comments on commit 06c239e

Please sign in to comment.