Skip to content

Commit fd4949f

Browse files
alexander-fensterstephenplusplus
authored andcommitted
chore: workaround for repo-tools EPERM (#22)
1 parent 324a668 commit fd4949f

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

  • packages/google-cloud-resourcemanager/.circleci

packages/google-cloud-resourcemanager/.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ jobs:
9191
fi
9292
- run:
9393
name: Install modules and dependencies.
94-
command: npm install
94+
command: |-
95+
npm install
96+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
97+
if ! test -x "$repo_tools"; then
98+
chmod +x "$repo_tools"
99+
fi
95100
- run:
96101
name: Run unit tests.
97102
command: npm test
@@ -121,6 +126,10 @@ jobs:
121126
name: Install modules and dependencies.
122127
command: |
123128
npm install
129+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
130+
if ! test -x "$repo_tools"; then
131+
chmod +x "$repo_tools"
132+
fi
124133
npm link
125134
- run:
126135
name: Link the module being tested to the samples.
@@ -140,7 +149,12 @@ jobs:
140149
- run: *remove_package_lock
141150
- run:
142151
name: Install modules and dependencies.
143-
command: npm install
152+
command: |-
153+
npm install
154+
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
155+
if ! test -x "$repo_tools"; then
156+
chmod +x "$repo_tools"
157+
fi
144158
- run:
145159
name: Build documentation.
146160
command: npm run docs

0 commit comments

Comments
 (0)