Skip to content

Commit

Permalink
chore: the ultimate fix for repo-tools EPERM (#3)
Browse files Browse the repository at this point in the history
* chore: the ultimate fix for repo-tools EPERM

* fix yaml references
  • Loading branch information
alexander-fenster authored and stephenplusplus committed May 22, 2018
1 parent a37e3cb commit a50d73b
Showing 1 changed file with 15 additions and 42 deletions.
57 changes: 15 additions & 42 deletions packages/google-cloud-redis/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,29 @@ workflows:
tests:
jobs: &workflow_jobs
- node6:
filters:
filters: &all_commits
tags:
only: /.*/
- node8:
filters:
tags:
only: /.*/
filters: *all_commits
- node9:
filters:
tags:
only: /.*/
filters: *all_commits
- node10:
filters:
tags:
only: /.*/
filters: *all_commits
- lint:
requires:
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- docs:
requires:
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- publish_npm:
requires:
- lint
Expand Down Expand Up @@ -72,14 +62,15 @@ jobs:
else
echo "Not a nightly build, skipping this step."
fi
- run:
name: Install modules and dependencies.
- run: &npm_install_and_link
name: Install and link the module
command: |-
mkdir -p /home/node/.npm-global
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
chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run:
name: Run unit tests.
command: npm test
Expand Down Expand Up @@ -109,18 +100,7 @@ jobs:
steps:
- checkout
- run: *remove_package_lock
- run:
name: Install modules and dependencies.
command: |
mkdir -p /home/node/.npm-global
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
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run: *npm_install_and_link
- run:
name: Run linting.
command: npm run lint
Expand All @@ -133,14 +113,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 Down

0 comments on commit a50d73b

Please sign in to comment.