Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 21 additions & 40 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
# "Include" for unit tests definition.
unit_tests: &unit_tests
steps:
unit_tests:
steps: &unit_tests
- checkout
- run:
name: Install modules and dependencies.
Expand All @@ -13,8 +11,7 @@ unit_tests: &unit_tests
name: Submit coverage data to codecov.
command: node_modules/.bin/codecov
when: always

version: 2.0
version: 2
workflows:
version: 2
tests:
Expand All @@ -27,10 +24,6 @@ workflows:
filters:
tags:
only: /.*/
- node7:
filters:
tags:
only: /.*/
- node8:
filters:
tags:
Expand All @@ -43,7 +36,6 @@ workflows:
requires:
- node4
- node6
- node7
- node8
- node9
filters:
Expand All @@ -53,7 +45,6 @@ workflows:
requires:
- node4
- node6
- node7
- node8
- node9
filters:
Expand All @@ -67,7 +58,7 @@ workflows:
branches:
only: master
tags:
only: /^v[\d.]+$/
only: '/^v[\d.]+$/'
- sample_tests:
requires:
- lint
Expand All @@ -76,7 +67,7 @@ workflows:
branches:
only: master
tags:
only: /^v[\d.]+$/
only: '/^v[\d.]+$/'
- publish_npm:
requires:
- system_tests
Expand All @@ -85,12 +76,11 @@ workflows:
branches:
ignore: /.*/
tags:
only: /^v[\d.]+$/

only: '/^v[\d.]+$/'
jobs:
node4:
docker:
- image: node:4
- image: 'node:4'
steps:
- checkout
- run:
Expand All @@ -105,24 +95,19 @@ jobs:
when: always
node6:
docker:
- image: node:6
<<: *unit_tests
node7:
docker:
- image: node:7
<<: *unit_tests
- image: 'node:6'
steps: *unit_tests
node8:
docker:
- image: node:8
<<: *unit_tests
- image: 'node:8'
steps: *unit_tests
node9:
docker:
- image: node:9
<<: *unit_tests

- image: 'node:9'
steps: *unit_tests
lint:
docker:
- image: node:8
- image: 'node:8'
steps:
- checkout
- run:
Expand All @@ -140,10 +125,9 @@ jobs:
- run:
name: Run linting.
command: npm run lint

docs:
docker:
- image: node:8
- image: 'node:8'
steps:
- checkout
- run:
Expand All @@ -152,10 +136,9 @@ jobs:
- run:
name: Build documentation.
command: npm run docs

sample_tests:
docker:
- image: node:8
- image: 'node:8'
steps:
- checkout
- run:
Expand Down Expand Up @@ -187,10 +170,9 @@ jobs:
command: rm .circleci/key.json
when: always
working_directory: /var/compute/

system_tests:
docker:
- image: node:8
- image: 'node:8'
steps:
- checkout
- run:
Expand All @@ -211,15 +193,14 @@ jobs:
name: Remove unencrypted key.
command: rm .circleci/key.json
when: always

publish_npm:
docker:
- image: node:8
- image: 'node:8'
steps:
- checkout
- run:
name: Set NPM authentication.
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
command: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run:
name: Publish the module to npm.
command: npm publish
name: Publish the module to npm.
command: npm publish
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/compute",
"description": "Google Compute Engine Client Library for Node.js",
"version": "0.9.0",
"version": "0.9.1",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
Expand Down Expand Up @@ -58,7 +58,7 @@
"test": "repo-tools test run --cmd npm -- run cover"
},
"dependencies": {
"@google-cloud/common": "^0.16.0",
"@google-cloud/common": "^0.16.1",
"arrify": "^1.0.0",
"async": "^2.5.0",
"create-error-class": "^3.0.2",
Expand All @@ -85,7 +85,7 @@
"power-assert": "^1.4.4",
"prettier": "^1.7.4",
"propprop": "^0.3.0",
"proxyquire": "^1.7.10",
"proxyquire": "^2.0.0",
"uuid": "^3.0.1"
}
}
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "repo-tools test run --cmd npm -- run all-test"
},
"dependencies": {
"@google-cloud/compute": "0.9.0",
"@google-cloud/compute": "0.9.1",
"googleapis": "22.2.0",
"nodemailer": "4.3.1",
"nodemailer-smtp-transport": "2.7.4",
Expand Down
Loading