File tree 1 file changed +17
-34
lines changed
packages/google-cloud-compute/.circleci
1 file changed +17
-34
lines changed Original file line number Diff line number Diff line change @@ -4,72 +4,55 @@ workflows:
4
4
tests :
5
5
jobs : &workflow_jobs
6
6
- node4 :
7
- filters :
7
+ filters : &all_commits
8
8
tags :
9
9
only : /.*/
10
10
- node6 :
11
- filters :
12
- tags :
13
- only : /.*/
11
+ filters : *all_commits
14
12
- node8 :
15
- filters :
16
- tags :
17
- only : /.*/
13
+ filters : *all_commits
18
14
- node9 :
19
- filters :
20
- tags :
21
- only : /.*/
15
+ filters : *all_commits
22
16
- node10 :
23
- filters :
24
- tags :
25
- only : /.*/
17
+ filters : *all_commits
26
18
- lint :
27
19
requires :
28
20
- node4
29
21
- node6
30
22
- node8
31
23
- node9
32
24
- node10
33
- filters :
34
- tags :
35
- only : /.*/
25
+ filters : *all_commits
36
26
- docs :
37
27
requires :
38
28
- node4
39
29
- node6
40
30
- node8
41
31
- node9
42
32
- node10
43
- filters :
44
- tags :
45
- only : /.*/
33
+ filters : *all_commits
46
34
- system_tests :
47
35
requires :
48
36
- lint
49
37
- docs
50
- filters :
38
+ filters : &master_and_releases
51
39
branches :
52
40
only : master
53
- tags :
41
+ tags : &releases
54
42
only : ' /^v[\d.]+$/'
55
43
- sample_tests :
56
44
requires :
57
45
- lint
58
46
- docs
59
- filters :
60
- branches :
61
- only : master
62
- tags :
63
- only : ' /^v[\d.]+$/'
47
+ filters : *master_and_releases
64
48
- publish_npm :
65
49
requires :
66
50
- system_tests
67
51
- sample_tests
68
52
filters :
69
53
branches :
70
54
ignore : /.*/
71
- tags :
72
- only : ' /^v[\d.]+$/'
55
+ tags : *releases
73
56
nightly :
74
57
triggers :
75
58
- schedule :
@@ -96,14 +79,14 @@ jobs:
96
79
echo "Not a nightly build, skipping this step."
97
80
fi
98
81
- 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
101
85
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
106
86
npm link
87
+ chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools
88
+ environment :
89
+ NPM_CONFIG_PREFIX : /home/node/.npm-global
107
90
- run :
108
91
name : Run unit tests.
109
92
command : npm test
You can’t perform that action at this time.
0 commit comments