Skip to content

Commit

Permalink
Re-generate library using /synth.py (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot authored and JustinBeckwith committed Jul 31, 2018
1 parent cf355f6 commit c8b8404
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions packages/google-cloud-language/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,47 @@ workflows:
tests:
jobs: &workflow_jobs
- node6:
filters:
filters: &all_commits
tags:
only: /.*/
- node8:
filters:
tags:
only: /.*/
filters: *all_commits
- node10:
filters:
tags:
only: /.*/
filters: *all_commits
- lint:
requires:
- node6
- node8
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- docs:
requires:
- node6
- node8
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- system_tests:
requires:
- lint
- docs
filters:
filters: &master_and_releases
branches:
only: master
tags:
tags: &releases
only: '/^v[\d.]+$/'
- sample_tests:
requires:
- lint
- docs
filters:
branches:
only: master
tags:
only: '/^v[\d.]+$/'
filters: *master_and_releases
- publish_npm:
requires:
- system_tests
- sample_tests
filters:
branches:
ignore: /.*/
tags:
only: '/^v[\d.]+$/'
tags: *releases
nightly:
triggers:
- schedule:
Expand All @@ -70,6 +57,7 @@ jobs:
node6:
docker:
- image: 'node:6'
user: node
steps: &unit_tests_steps
- checkout
- run: &remove_package_lock
Expand All @@ -84,25 +72,29 @@ jobs:
echo "Not a nightly build, skipping this step."
fi
- run: &npm_install_and_link
name: Install and link the module.
command: npm install
name: Install and link the module
command: |-
mkdir -p /home/node/.npm-global
npm install
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run: npm test
- run: node_modules/.bin/codecov

node8:
docker:
- image: 'node:8'
steps: *unit_tests_steps
node9:
docker:
- image: 'node:9'
user: node
steps: *unit_tests_steps
node10:
docker:
- image: 'node:10'
user: node
steps: *unit_tests_steps
lint:
docker:
- image: 'node:8'
user: node
steps:
- checkout
- run: *remove_package_lock
Expand All @@ -111,14 +103,19 @@ jobs:
name: Link the module being tested to the samples.
command: |
cd samples/
npm install
npm link ../
npm install
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run:
name: Run linting.
command: npm run lint
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
docs:
docker:
- image: 'node:8'
user: node
steps:
- checkout
- run: *remove_package_lock
Expand All @@ -129,6 +126,7 @@ jobs:
sample_tests:
docker:
- image: 'node:8'
user: node
steps:
- checkout
- run: *remove_package_lock
Expand All @@ -145,15 +143,17 @@ jobs:
command: npm run samples-test
environment:
GCLOUD_PROJECT: long-door-651
GOOGLE_APPLICATION_CREDENTIALS: /var/language/.circleci/key.json
GOOGLE_APPLICATION_CREDENTIALS: /home/node/samples/.circleci/key.json
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run:
name: Remove unencrypted key.
command: rm .circleci/key.json
when: always
working_directory: /var/language/
working_directory: /home/node/samples/
system_tests:
docker:
- image: 'node:8'
user: node
steps:
- checkout
- run: *remove_package_lock
Expand All @@ -176,7 +176,8 @@ jobs:
publish_npm:
docker:
- image: 'node:8'
user: node
steps:
- checkout
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
- run: npm publish
- run: npm publish --access=public

0 comments on commit c8b8404

Please sign in to comment.