Skip to content

Commit 0f0b120

Browse files
alexander-fensterstephenplusplus
authored andcommitted
chore: the ultimate fix for repo-tools EPERM (#87)
1 parent 1c971c9 commit 0f0b120

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

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

+17-34
Original file line numberDiff line numberDiff line change
@@ -4,72 +4,55 @@ workflows:
44
tests:
55
jobs: &workflow_jobs
66
- node4:
7-
filters:
7+
filters: &all_commits
88
tags:
99
only: /.*/
1010
- node6:
11-
filters:
12-
tags:
13-
only: /.*/
11+
filters: *all_commits
1412
- node8:
15-
filters:
16-
tags:
17-
only: /.*/
13+
filters: *all_commits
1814
- node9:
19-
filters:
20-
tags:
21-
only: /.*/
15+
filters: *all_commits
2216
- node10:
23-
filters:
24-
tags:
25-
only: /.*/
17+
filters: *all_commits
2618
- lint:
2719
requires:
2820
- node4
2921
- node6
3022
- node8
3123
- node9
3224
- node10
33-
filters:
34-
tags:
35-
only: /.*/
25+
filters: *all_commits
3626
- docs:
3727
requires:
3828
- node4
3929
- node6
4030
- node8
4131
- node9
4232
- node10
43-
filters:
44-
tags:
45-
only: /.*/
33+
filters: *all_commits
4634
- system_tests:
4735
requires:
4836
- lint
4937
- docs
50-
filters:
38+
filters: &master_and_releases
5139
branches:
5240
only: master
53-
tags:
41+
tags: &releases
5442
only: '/^v[\d.]+$/'
5543
- sample_tests:
5644
requires:
5745
- lint
5846
- docs
59-
filters:
60-
branches:
61-
only: master
62-
tags:
63-
only: '/^v[\d.]+$/'
47+
filters: *master_and_releases
6448
- publish_npm:
6549
requires:
6650
- system_tests
6751
- sample_tests
6852
filters:
6953
branches:
7054
ignore: /.*/
71-
tags:
72-
only: '/^v[\d.]+$/'
55+
tags: *releases
7356
nightly:
7457
triggers:
7558
- schedule:
@@ -96,14 +79,14 @@ jobs:
9679
echo "Not a nightly build, skipping this step."
9780
fi
9881
- run: &npm_install_and_link
99-
name: Install and link the module.
100-
command: |
82+
name: Install and link the module
83+
command: |-
84+
mkdir -p /home/node/.npm-global
10185
npm install
102-
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
103-
if ! test -x "$repo_tools"; then
104-
chmod +x "$repo_tools"
105-
fi
10686
npm link
87+
chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools
88+
environment:
89+
NPM_CONFIG_PREFIX: /home/node/.npm-global
10790
- run:
10891
name: Run unit tests.
10992
command: npm test

0 commit comments

Comments
 (0)