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 : |
87
76
- attach_workspace :
88
77
at : ~/
89
78
- run :
90
- name : which pip3 version
91
- command : which pip3 && pip3 --version
92
- - run :
93
- name : install kaleido v0.2.1
94
- command : python3 -m pip install kaleido==0.2.1
95
- - run :
96
- name : install plotly.io v5.0.0
97
- command : python3 -m pip install plotly==5.0.0
98
- - run :
99
- name : install liberation2 fonts
100
- command : sudo apt-get install fonts-liberation2
101
- - run :
102
- name : install OpenSans fonts
103
- command : sudo apt-get install fonts-open-sans
104
- - run :
105
- name : install NotoSansCJK fonts
106
- command : sudo apt install fonts-noto-cjk
107
- - run :
108
- name : download google fonts e.g. Dosis, GravitasOne, NotoSansMono, NotoSans, NotoSerif, Old_Standard_TT, PT_Sans_Narrow, Raleway and Roboto
109
- command : python3 .circleci/download_google_fonts.py
110
- - run :
111
- name : install downloaded google fonts
112
- command : |
113
- sudo cp -r .circleci/fonts/ /usr/share/
114
- sudo fc-cache -f
79
+ name : install kaleido, plotly.io and required fonts
80
+ command : .circleci/env_image.sh
115
81
- run :
116
82
name : create all png files
117
83
command : .circleci/test.sh make-baselines
@@ -142,14 +108,8 @@ jobs:
142
108
- attach_workspace :
143
109
at : ~/
144
110
- run :
145
- name : which pip3 version
146
- command : which pip3 && pip3 --version
147
- - run :
148
- name : install kaleido v0.2.1
149
- command : python3 -m pip install kaleido==0.2.1
150
- - run :
151
- name : install plotly.io v5.0.0
152
- command : python3 -m pip install plotly==5.0.0
111
+ name : install kaleido, plotly.io and required fonts
112
+ command : .circleci/env_image.sh
153
113
- run :
154
114
name : install poppler-utils to have pdftops for exporting eps
155
115
command : sudo apt-get install poppler-utils
@@ -217,8 +177,10 @@ jobs:
217
177
- image : circleci/node:12.22.1
218
178
working_directory : ~/plotly.js
219
179
steps :
220
- - attach_workspace :
221
- at : ~/
180
+ - checkout
181
+ - run :
182
+ name : set up build environment
183
+ command : .circleci/env_build.sh
222
184
- run :
223
185
name : Build dist/
224
186
command : npm run build
@@ -242,18 +204,6 @@ jobs:
242
204
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
243
205
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
244
206
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
245
- - persist_to_workspace :
246
- root : ~/
247
- paths :
248
- - plotly.js
249
-
250
- test-dist1 :
251
- docker :
252
- - image : circleci/node:12.22.1
253
- working_directory : ~/plotly.js
254
- steps :
255
- - attach_workspace :
256
- at : ~/
257
207
- run :
258
208
name : Test plotly.min.js import using requirejs
259
209
command : npm run test-requirejs
@@ -263,20 +213,9 @@ jobs:
263
213
- run :
264
214
name : Test certain bundles against function constructors
265
215
command : npm run no-new-func
266
-
267
- test-dist2 :
268
- docker :
269
- - image : circleci/node:12.22.1
270
- working_directory : ~/plotly.js
271
- steps :
272
- - attach_workspace :
273
- at : ~/
274
216
- run :
275
217
name : Test plotly bundles against es6
276
218
command : npm run no-es6-dist
277
- - run :
278
- name : Test plotly bundles againt duplicate keys
279
- command : npm run no-dup-keys
280
219
281
220
workflows :
282
221
version : 2
@@ -313,12 +252,5 @@ workflows:
313
252
- source-syntax :
314
253
requires :
315
254
- install-and-cibuild
316
- - publish-dist :
317
- requires :
318
- - install-and-cibuild
319
- - test-dist1 :
320
- requires :
321
- - publish-dist
322
- - test-dist2 :
323
- requires :
324
- - publish-dist
255
+
256
+ - publish-dist
0 commit comments