Skip to content

Commit

Permalink
chore: test on node10 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored May 2, 2018
1 parent 62bfc98 commit f0b08ff
Showing 1 changed file with 20 additions and 45 deletions.
65 changes: 20 additions & 45 deletions packages/google-cloud-compute/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ workflows:
filters:
tags:
only: /.*/
- node10:
filters:
tags:
only: /.*/
- lint:
requires:
- node4
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
Expand All @@ -34,6 +39,7 @@ workflows:
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
Expand Down Expand Up @@ -89,14 +95,15 @@ jobs:
else
echo "Not a nightly build, skipping this step."
fi
- run:
name: Install modules and dependencies.
command: |-
- run: &npm_install_and_link
name: Install and link the module.
command: |
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
npm link
- run:
name: Run unit tests.
command: npm test
Expand All @@ -116,22 +123,18 @@ jobs:
docker:
- image: 'node:9'
steps: *unit_tests_steps
node10:
docker:
- image: 'node:10'
steps: *unit_tests_steps
lint:
docker:
- image: 'node:8'
steps:
- checkout
- run: *remove_package_lock
- run:
name: Install modules and dependencies.
command: |
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
npm link
- run:
- run: *npm_install_and_link
- run: &samples_npm_install_and_link
name: Link the module being tested to the samples.
command: |
cd samples/
Expand All @@ -147,14 +150,7 @@ jobs:
steps:
- checkout
- run: *remove_package_lock
- run:
name: Install modules and dependencies.
command: |-
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
- run: *npm_install_and_link
- run:
name: Build documentation.
command: npm run docs
Expand All @@ -170,22 +166,8 @@ jobs:
openssl aes-256-cbc -d -in .circleci/key.json.enc \
-out .circleci/key.json \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
- run:
name: Install and link the module.
command: |
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
npm link
- run:
name: Link the module being tested to the samples.
command: |
cd samples/
npm link @google-cloud/compute
npm install
cd ..
- run: *npm_install_and_link
- run: *samples_npm_install_and_link
- run:
name: Run sample tests.
command: npm run samples-test
Expand All @@ -209,14 +191,7 @@ jobs:
openssl aes-256-cbc -d -in .circleci/key.json.enc \
-out .circleci/key.json \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
- run:
name: Install modules and dependencies.
command: |-
npm install
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
if ! test -x "$repo_tools"; then
chmod +x "$repo_tools"
fi
- run: *npm_install_and_link
- run:
name: Run system tests.
command: npm run system-test
Expand Down

0 comments on commit f0b08ff

Please sign in to comment.