Skip to content

Commit 2aabfd3

Browse files
committed
move dist tests to a separate containers and run in parallel
1 parent aa4bb2d commit 2aabfd3

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

.circleci/config.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@ jobs:
170170
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
171171
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
172172
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
173+
- persist_to_workspace:
174+
root: ~/
175+
paths:
176+
- plotly.js
177+
178+
test-dist1:
179+
docker:
180+
- image: circleci/node:12.13.0
181+
working_directory: ~/plotly.js
182+
steps:
183+
- attach_workspace:
184+
at: ~/
173185
- run:
174186
name: Test validation using node.js and jsdom
175187
command: npm run test-plain-obj
@@ -182,13 +194,19 @@ jobs:
182194
- run:
183195
name: Test certain bundles against function constructors
184196
command: npm run no-new-func
197+
198+
test-dist2:
199+
docker:
200+
- image: circleci/node:12.13.0
201+
working_directory: ~/plotly.js
202+
steps:
203+
- attach_workspace:
204+
at: ~/
185205
- run:
186206
name: Test plotly bundles against es6
187207
command: npm run no-es6-dist
188208
- run:
189209
name: Test plotly bundles againt duplicate keys
190-
environment:
191-
NODE_OPTIONS: --max_old_space_size=4096
192210
command: npm run no-dup-keys
193211

194212
workflows:
@@ -220,3 +238,9 @@ workflows:
220238
- publish-dist:
221239
requires:
222240
- install-and-cibuild
241+
- test-dist1:
242+
requires:
243+
- publish-dist
244+
- test-dist2:
245+
requires:
246+
- publish-dist

0 commit comments

Comments
 (0)