1
- ---
2
- # "Include" for unit tests definition.
3
- unit_tests : &unit_tests
4
- steps :
1
+ unit_tests :
2
+ steps : &unit_tests
5
3
- checkout
6
4
- run :
7
5
name : Install modules and dependencies.
@@ -13,8 +11,7 @@ unit_tests: &unit_tests
13
11
name : Submit coverage data to codecov.
14
12
command : node_modules/.bin/codecov
15
13
when : always
16
-
17
- version : 2.0
14
+ version : 2
18
15
workflows :
19
16
version : 2
20
17
tests :
@@ -27,10 +24,6 @@ workflows:
27
24
filters :
28
25
tags :
29
26
only : /.*/
30
- - node7 :
31
- filters :
32
- tags :
33
- only : /.*/
34
27
- node8 :
35
28
filters :
36
29
tags :
@@ -43,7 +36,6 @@ workflows:
43
36
requires :
44
37
- node4
45
38
- node6
46
- - node7
47
39
- node8
48
40
- node9
49
41
filters :
@@ -53,7 +45,6 @@ workflows:
53
45
requires :
54
46
- node4
55
47
- node6
56
- - node7
57
48
- node8
58
49
- node9
59
50
filters :
@@ -67,7 +58,7 @@ workflows:
67
58
branches :
68
59
only : master
69
60
tags :
70
- only : /^v[\d.]+$/
61
+ only : ' /^v[\d.]+$/'
71
62
- sample_tests :
72
63
requires :
73
64
- lint
@@ -76,7 +67,7 @@ workflows:
76
67
branches :
77
68
only : master
78
69
tags :
79
- only : /^v[\d.]+$/
70
+ only : ' /^v[\d.]+$/'
80
71
- publish_npm :
81
72
requires :
82
73
- system_tests
@@ -85,12 +76,11 @@ workflows:
85
76
branches :
86
77
ignore : /.*/
87
78
tags :
88
- only : /^v[\d.]+$/
89
-
79
+ only : ' /^v[\d.]+$/'
90
80
jobs :
91
81
node4 :
92
82
docker :
93
- - image : node:4
83
+ - image : ' node:4'
94
84
user : node
95
85
steps :
96
86
- checkout
@@ -106,28 +96,22 @@ jobs:
106
96
when : always
107
97
node6 :
108
98
docker :
109
- - image : node:6
110
- user : node
111
- << : *unit_tests
112
- node7 :
113
- docker :
114
- - image : node:7
99
+ - image : ' node:6'
115
100
user : node
116
- << : *unit_tests
101
+ steps : *unit_tests
117
102
node8 :
118
103
docker :
119
- - image : node:8
104
+ - image : ' node:8'
120
105
user : node
121
- << : *unit_tests
106
+ steps : *unit_tests
122
107
node9 :
123
108
docker :
124
- - image : node:9
109
+ - image : ' node:9'
125
110
user : node
126
- << : *unit_tests
127
-
111
+ steps : *unit_tests
128
112
lint :
129
113
docker :
130
- - image : node:8
114
+ - image : ' node:8'
131
115
user : node
132
116
steps :
133
117
- checkout
@@ -153,10 +137,9 @@ jobs:
153
137
command : npm run lint
154
138
environment :
155
139
NPM_CONFIG_PREFIX : /home/node/.npm-global
156
-
157
140
docs :
158
141
docker :
159
- - image : node:8
142
+ - image : ' node:8'
160
143
user : node
161
144
steps :
162
145
- checkout
@@ -166,10 +149,9 @@ jobs:
166
149
- run :
167
150
name : Build documentation.
168
151
command : npm run docs
169
-
170
152
sample_tests :
171
153
docker :
172
- - image : node:8
154
+ - image : ' node:8'
173
155
user : node
174
156
steps :
175
157
- checkout
@@ -208,10 +190,9 @@ jobs:
208
190
command : rm .circleci/key.json
209
191
when : always
210
192
working_directory : /home/node/speech-samples/
211
-
212
193
system_tests :
213
194
docker :
214
- - image : node:8
195
+ - image : ' node:8'
215
196
user : node
216
197
steps :
217
198
- checkout
@@ -233,16 +214,15 @@ jobs:
233
214
name : Remove unencrypted key.
234
215
command : rm .circleci/key.json
235
216
when : always
236
-
237
217
publish_npm :
238
218
docker :
239
- - image : node:8
219
+ - image : ' node:8'
240
220
user : node
241
221
steps :
242
222
- checkout
243
223
- run :
244
224
name : Set NPM authentication.
245
- command : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
225
+ command : ' echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
246
226
- run :
247
- name : Publish the module to npm.
248
- command : npm publish
227
+ name : Publish the module to npm.
228
+ command : npm publish
0 commit comments