@@ -19,12 +19,17 @@ workflows:
19
19
filters :
20
20
tags :
21
21
only : /.*/
22
+ - node10 :
23
+ filters :
24
+ tags :
25
+ only : /.*/
22
26
- lint :
23
27
requires :
24
28
- node4
25
29
- node6
26
30
- node8
27
31
- node9
32
+ - node10
28
33
filters :
29
34
tags :
30
35
only : /.*/
@@ -34,6 +39,7 @@ workflows:
34
39
- node6
35
40
- node8
36
41
- node9
42
+ - node10
37
43
filters :
38
44
tags :
39
45
only : /.*/
@@ -89,14 +95,15 @@ jobs:
89
95
else
90
96
echo "Not a nightly build, skipping this step."
91
97
fi
92
- - run :
93
- name : Install modules and dependencies .
94
- command : |-
98
+ - run : &npm_install_and_link
99
+ name : Install and link the module .
100
+ command : |
95
101
npm install
96
102
repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
97
103
if ! test -x "$repo_tools"; then
98
104
chmod +x "$repo_tools"
99
105
fi
106
+ npm link
100
107
- run :
101
108
name : Run unit tests.
102
109
command : npm test
@@ -116,22 +123,18 @@ jobs:
116
123
docker :
117
124
- image : ' node:9'
118
125
steps : *unit_tests_steps
126
+ node10 :
127
+ docker :
128
+ - image : ' node:10'
129
+ steps : *unit_tests_steps
119
130
lint :
120
131
docker :
121
132
- image : ' node:8'
122
133
steps :
123
134
- checkout
124
135
- run : *remove_package_lock
125
- - run :
126
- name : Install modules and dependencies.
127
- command : |
128
- 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
133
- npm link
134
- - run :
136
+ - run : *npm_install_and_link
137
+ - run : &samples_npm_install_and_link
135
138
name : Link the module being tested to the samples.
136
139
command : |
137
140
cd samples/
@@ -147,14 +150,7 @@ jobs:
147
150
steps :
148
151
- checkout
149
152
- run : *remove_package_lock
150
- - run :
151
- name : Install modules and dependencies.
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
153
+ - run : *npm_install_and_link
158
154
- run :
159
155
name : Build documentation.
160
156
command : npm run docs
@@ -170,22 +166,8 @@ jobs:
170
166
openssl aes-256-cbc -d -in .circleci/key.json.enc \
171
167
-out .circleci/key.json \
172
168
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
173
- - run :
174
- name : Install and link the module.
175
- command : |
176
- npm install
177
- repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
178
- if ! test -x "$repo_tools"; then
179
- chmod +x "$repo_tools"
180
- fi
181
- npm link
182
- - run :
183
- name : Link the module being tested to the samples.
184
- command : |
185
- cd samples/
186
- npm link @google-cloud/resource
187
- npm install
188
- cd ..
169
+ - run : *npm_install_and_link
170
+ - run : *samples_npm_install_and_link
189
171
- run :
190
172
name : Run sample tests.
191
173
command : npm run samples-test
@@ -209,14 +191,7 @@ jobs:
209
191
openssl aes-256-cbc -d -in .circleci/key.json.enc \
210
192
-out .circleci/key.json \
211
193
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
212
- - run :
213
- name : Install modules and dependencies.
214
- command : |-
215
- npm install
216
- repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools"
217
- if ! test -x "$repo_tools"; then
218
- chmod +x "$repo_tools"
219
- fi
194
+ - run : *npm_install_and_link
220
195
- run :
221
196
name : Run system tests.
222
197
command : npm run system-test
0 commit comments