1515 steps :
1616 - checkout
1717 - 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
3120 - run :
3221 name : Pretest
3322 command : |
8776 - attach_workspace :
8877 at : ~/
8978 - 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
11581 - run :
11682 name : create all png files
11783 command : .circleci/test.sh make-baselines
@@ -142,14 +108,8 @@ jobs:
142108 - attach_workspace :
143109 at : ~/
144110 - 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
153113 - run :
154114 name : install poppler-utils to have pdftops for exporting eps
155115 command : sudo apt-get install poppler-utils
@@ -217,8 +177,10 @@ jobs:
217177 - image : circleci/node:12.22.1
218178 working_directory : ~/plotly.js
219179 steps :
220- - attach_workspace :
221- at : ~/
180+ - checkout
181+ - run :
182+ name : set up build environment
183+ command : .circleci/env_build.sh
222184 - run :
223185 name : Build dist/
224186 command : npm run build
@@ -242,18 +204,6 @@ jobs:
242204 echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
243205 echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
244206 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 : ~/
257207 - run :
258208 name : Test plotly.min.js import using requirejs
259209 command : npm run test-requirejs
@@ -263,20 +213,9 @@ jobs:
263213 - run :
264214 name : Test certain bundles against function constructors
265215 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 : ~/
274216 - run :
275217 name : Test plotly bundles against es6
276218 command : npm run no-es6-dist
277- - run :
278- name : Test plotly bundles againt duplicate keys
279- command : npm run no-dup-keys
280219
281220workflows :
282221 version : 2
@@ -313,12 +252,5 @@ workflows:
313252 - source-syntax :
314253 requires :
315254 - 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