15
15
steps :
16
16
- checkout
17
17
- run :
18
- name : set heap option before very first node.js call
19
- command : |
20
- export NODE_OPTIONS='--max-old-space-size=4096'
21
- - run :
22
- name : Install dependencies
23
- command : |
24
- npm ci
25
- - run :
26
- name : List dependency versions
27
- command : |
28
- echo "npm: $(npm --version)"
29
- echo "node: $(node --version)"
30
- npm ls || true
18
+ name : set up build environment
19
+ command : .circleci/env_build.sh
31
20
- run :
32
21
name : Pretest
33
22
command : |
@@ -194,8 +183,10 @@ jobs:
194
183
- image : circleci/node:12.22.1
195
184
working_directory : ~/plotly.js
196
185
steps :
197
- - attach_workspace :
198
- at : ~/
186
+ - checkout
187
+ - run :
188
+ name : set up build environment
189
+ command : .circleci/env_build.sh
199
190
- run :
200
191
name : Build dist/
201
192
command : npm run build
@@ -219,18 +210,6 @@ jobs:
219
210
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
220
211
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
221
212
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
222
- - persist_to_workspace :
223
- root : ~/
224
- paths :
225
- - plotly.js
226
-
227
- test-dist1 :
228
- docker :
229
- - image : circleci/node:12.22.1
230
- working_directory : ~/plotly.js
231
- steps :
232
- - attach_workspace :
233
- at : ~/
234
213
- run :
235
214
name : Test plotly.min.js import using requirejs
236
215
command : npm run test-requirejs
@@ -240,20 +219,9 @@ jobs:
240
219
- run :
241
220
name : Test certain bundles against function constructors
242
221
command : npm run no-new-func
243
-
244
- test-dist2 :
245
- docker :
246
- - image : circleci/node:12.22.1
247
- working_directory : ~/plotly.js
248
- steps :
249
- - attach_workspace :
250
- at : ~/
251
222
- run :
252
223
name : Test plotly bundles against es6
253
224
command : npm run no-es6-dist
254
- - run :
255
- name : Test plotly bundles againt duplicate keys
256
- command : npm run no-dup-keys
257
225
258
226
workflows :
259
227
version : 2
@@ -290,12 +258,5 @@ workflows:
290
258
- source-syntax :
291
259
requires :
292
260
- install-and-cibuild
293
- - publish-dist :
294
- requires :
295
- - install-and-cibuild
296
- - test-dist1 :
297
- requires :
298
- - publish-dist
299
- - test-dist2 :
300
- requires :
301
- - publish-dist
261
+
262
+ - publish-dist
0 commit comments