1- ---
2- # "Include" for unit tests definition.
3- unit_tests : &unit_tests
4- steps :
1+ unit_tests :
2+ steps : &unit_tests
53 - checkout
64 - run :
75 name : Install modules and dependencies.
86 command : npm install
97 - run :
108 name : Run unit tests.
119 command : npm test
12- # TODO: Re-enable after the translation to Typescript is complete
13- # - run:
14- # name: Submit coverage data to codecov.
15- # command: node_modules/.bin/codecov
16- # when: always
17-
18- version : 2.0
10+ version : 2
1911workflows :
2012 version : 2
2113 tests :
@@ -28,10 +20,6 @@ workflows:
2820 filters :
2921 tags :
3022 only : /.*/
31- - node7 :
32- filters :
33- tags :
34- only : /.*/
3523 - node8 :
3624 filters :
3725 tags :
@@ -44,7 +32,6 @@ workflows:
4432 requires :
4533 - node4
4634 - node6
47- - node7
4835 - node8
4936 - node9
5037 filters :
@@ -54,7 +41,6 @@ workflows:
5441 requires :
5542 - node4
5643 - node6
57- - node7
5844 - node8
5945 - node9
6046 filters :
@@ -68,7 +54,7 @@ workflows:
6854 branches :
6955 only : master
7056 tags :
71- only : /^v[\d.]+$/
57+ only : ' /^v[\d.]+$/'
7258 - sample_tests :
7359 requires :
7460 - lint
@@ -77,7 +63,7 @@ workflows:
7763 branches :
7864 only : master
7965 tags :
80- only : /^v[\d.]+$/
66+ only : ' /^v[\d.]+$/'
8167 - publish_npm :
8268 requires :
8369 - system_tests
@@ -86,12 +72,11 @@ workflows:
8672 branches :
8773 ignore : /.*/
8874 tags :
89- only : /^v[\d.]+$/
90-
75+ only : ' /^v[\d.]+$/'
9176jobs :
9277 node4 :
9378 docker :
94- - image : node:4
79+ - image : ' node:4'
9580 steps :
9681 - checkout
9782 - run :
@@ -100,31 +85,21 @@ jobs:
10085 - run :
10186 name : Run unit tests.
10287 command : npm test
103- # TODO: Re-enable after the translation to Typescript is complete
104- # - run:
105- # name: Submit coverage data to codecov.
106- # command: node_modules/.bin/codecov
107- # when: always
10888 node6 :
10989 docker :
110- - image : node:6
111- << : *unit_tests
112- node7 :
113- docker :
114- - image : node:7
115- << : *unit_tests
90+ - image : ' node:6'
91+ steps : *unit_tests
11692 node8 :
11793 docker :
118- - image : node:8
119- << : *unit_tests
94+ - image : ' node:8'
95+ steps : *unit_tests
12096 node9 :
12197 docker :
122- - image : node:9
123- << : *unit_tests
124-
98+ - image : ' node:9'
99+ steps : *unit_tests
125100 lint :
126101 docker :
127- - image : node:8
102+ - image : ' node:8'
128103 steps :
129104 - checkout
130105 - run :
@@ -142,10 +117,9 @@ jobs:
142117 - run :
143118 name : Run linting.
144119 command : npm run lint
145-
146120 docs :
147121 docker :
148- - image : node:8
122+ - image : ' node:8'
149123 steps :
150124 - checkout
151125 - run :
@@ -154,10 +128,9 @@ jobs:
154128 - run :
155129 name : Build documentation.
156130 command : npm run docs
157-
158131 sample_tests :
159132 docker :
160- - image : node:8
133+ - image : ' node:8'
161134 steps :
162135 - checkout
163136 - run :
@@ -189,10 +162,9 @@ jobs:
189162 command : rm .circleci/key.json
190163 when : always
191164 working_directory : /var/error-reporting/
192-
193165 system_tests :
194166 docker :
195- - image : node:8
167+ - image : ' node:8'
196168 steps :
197169 - checkout
198170 - run :
@@ -215,15 +187,14 @@ jobs:
215187 command : rm .circleci/key.json
216188 when : always
217189 working_directory : /var/error-reporting/
218-
219190 publish_npm :
220191 docker :
221- - image : node:8
192+ - image : ' node:8'
222193 steps :
223194 - checkout
224195 - run :
225196 name : Set NPM authentication.
226- command : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
197+ command : ' echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
227198 - run :
228- name : Publish the module to npm.
229- command : npm publish
199+ name : Publish the module to npm.
200+ command : npm publish
0 commit comments