Skip to content

Commit

Permalink
chore: the ultimate fix for repo-tools EPERM (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored and stephenplusplus committed May 22, 2018
1 parent b13d343 commit 796a187
Showing 1 changed file with 14 additions and 34 deletions.
48 changes: 14 additions & 34 deletions packages/google-cloud-node/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,55 @@ workflows:
tests:
jobs: &workflow_jobs
- node4:
filters:
filters: &all_commits
tags:
only: /.*/
- node6:
filters:
tags:
only: /.*/
filters: *all_commits
- node8:
filters:
tags:
only: /.*/
filters: *all_commits
- node9:
filters:
tags:
only: /.*/
filters: *all_commits
- node10:
filters:
tags:
only: /.*/
filters: *all_commits
- lint:
requires:
- node4
- node6
- node8
- node9
- node10
filters:
tags:
only: /.*/
filters: *all_commits
- docs:
requires:
- node4
- node6
- node8
- node9
- 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 Down Expand Up @@ -97,15 +80,12 @@ jobs:
echo "Not a nightly build, skipping this step."
fi
- run: &npm_install_and_link
name: Install and link the module.
command: |
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:
Expand Down

0 comments on commit 796a187

Please sign in to comment.