Skip to content

Commit a49cdac

Browse files
alexander-fensterstephenplusplus
authored andcommitted
chore: the ultimate fix for repo-tools EPERM (#199)
1 parent ec84eec commit a49cdac

1 file changed

Lines changed: 14 additions & 34 deletions

File tree

handwritten/spanner/.circleci/config.yml

Lines changed: 14 additions & 34 deletions
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:
@@ -97,15 +80,12 @@ jobs:
9780
echo "Not a nightly build, skipping this step."
9881
fi
9982
- run: &npm_install_and_link
100-
name: Install and link the module.
101-
command: |
83+
name: Install and link the module
84+
command: |-
10285
mkdir -p /home/node/.npm-global
10386
npm install
104-
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
105-
if ! test -x "$repo_tools"; then
106-
chmod +x "$repo_tools"
107-
fi
10887
npm link
88+
chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools
10989
environment:
11090
NPM_CONFIG_PREFIX: /home/node/.npm-global
11191
- run:

0 commit comments

Comments
 (0)