From ae3a819d0ee362d9d285c5e5f6324be19460ee88 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 27 Mar 2018 18:09:52 -0700 Subject: [PATCH] chore: workaround for repo-tools EPERM (#45) --- .../google-cloud-language/.circleci/config.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-language/.circleci/config.yml b/packages/google-cloud-language/.circleci/config.yml index ac5dc20ac46..a7716baa8d1 100644 --- a/packages/google-cloud-language/.circleci/config.yml +++ b/packages/google-cloud-language/.circleci/config.yml @@ -91,7 +91,12 @@ jobs: fi - run: name: Install modules and dependencies. - command: npm install + 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: name: Run unit tests. command: npm test @@ -121,6 +126,10 @@ jobs: 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: name: Link the module being tested to the samples. @@ -140,7 +149,12 @@ jobs: - run: *remove_package_lock - run: name: Install modules and dependencies. - command: npm install + 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: name: Build documentation. command: npm run docs