55
55
- save_cache :
56
56
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
57
57
paths :
58
- - venv
58
+ - venv
59
59
- run :
60
60
name : 🌸 Python & JS Lint
61
61
command : |
@@ -71,26 +71,26 @@ jobs:
71
71
npm run citest.unit
72
72
73
73
lint-unit-36 :
74
- << : *lint-unit
75
- docker :
76
- - image : circleci/python:3.6.12-stretch-node-browsers
77
- auth :
78
- username : dashautomation
79
- password : $DASH_PAT_DOCKERHUB
80
- environment :
81
- PYLINTRC : .pylintrc
82
- PYVERSION : python36
74
+ << : *lint-unit
75
+ docker :
76
+ - image : circleci/python:3.6.12-stretch-node-browsers
77
+ auth :
78
+ username : dashautomation
79
+ password : $DASH_PAT_DOCKERHUB
80
+ environment :
81
+ PYLINTRC : .pylintrc
82
+ PYVERSION : python36
83
83
84
84
lint-unit-27 :
85
- << : *lint-unit
86
- docker :
87
- - image : circleci/python:2.7.18-stretch-node-browsers
88
- auth :
89
- username : dashautomation
90
- password : $DASH_PAT_DOCKERHUB
91
- environment :
92
- PYLINTRC : .pylintrc
93
- PYVERSION : python27
85
+ << : *lint-unit
86
+ docker :
87
+ - image : circleci/python:2.7.18-stretch-node-browsers
88
+ auth :
89
+ username : dashautomation
90
+ password : $DASH_PAT_DOCKERHUB
91
+ environment :
92
+ PYLINTRC : .pylintrc
93
+ PYVERSION : python27
94
94
95
95
build-core-37 : &build-core
96
96
working_directory : ~/dash
@@ -107,7 +107,7 @@ jobs:
107
107
- restore_cache :
108
108
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
109
109
- run :
110
- name : ️️ 🏗️ pip dev requirements
110
+ name : ️ 🏗️ pip dev requirements
111
111
command : |
112
112
sudo pip install --upgrade virtualenv
113
113
python -m venv venv || virtualenv venv && . venv/bin/activate
@@ -116,39 +116,39 @@ jobs:
116
116
- save_cache :
117
117
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
118
118
paths :
119
- - venv
119
+ - venv
120
120
- run :
121
121
name : ️️🏗️ build core
122
122
command : |
123
- . venv/bin/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
124
- cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
125
- git clone --depth 1 https://github.com/plotly/dash-core-components.git
126
- cd dash-core-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
127
- ls -la packages
123
+ . venv/bin/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
124
+ cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
125
+ git clone --depth 1 https://github.com/plotly/dash-core-components.git
126
+ cd dash-core-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
127
+ ls -la packages
128
128
- persist_to_workspace :
129
129
root : ~/dash
130
130
paths :
131
131
- packages/*.tar.gz
132
132
133
133
build-core-36 :
134
- << : *build-core
135
- docker :
136
- - image : circleci/python:3.6.12-stretch-node-browsers
137
- auth :
138
- username : dashautomation
139
- password : $DASH_PAT_DOCKERHUB
140
- environment :
141
- PYVERSION : python36
134
+ << : *build-core
135
+ docker :
136
+ - image : circleci/python:3.6.12-stretch-node-browsers
137
+ auth :
138
+ username : dashautomation
139
+ password : $DASH_PAT_DOCKERHUB
140
+ environment :
141
+ PYVERSION : python36
142
142
143
143
build-core-27 :
144
- << : *build-core
145
- docker :
146
- - image : circleci/python:2.7.18-stretch-node-browsers
147
- auth :
148
- username : dashautomation
149
- password : $DASH_PAT_DOCKERHUB
150
- environment :
151
- PYVERSION : python27
144
+ << : *build-core
145
+ docker :
146
+ - image : circleci/python:2.7.18-stretch-node-browsers
147
+ auth :
148
+ username : dashautomation
149
+ password : $DASH_PAT_DOCKERHUB
150
+ environment :
151
+ PYVERSION : python27
152
152
153
153
build-misc-37 : &build-misc
154
154
working_directory : ~/dash
@@ -174,40 +174,40 @@ jobs:
174
174
- save_cache :
175
175
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
176
176
paths :
177
- - venv
177
+ - venv
178
178
- run :
179
179
name : ️️🏗️ build misc
180
180
command : |
181
- . venv/bin/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
182
- git clone --depth 1 https://github.com/plotly/dash-table.git
183
- cd dash-table && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
184
- git clone --depth 1 https://github.com/plotly/dash-html-components.git
185
- cd dash-html-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
186
- ls -la packages
181
+ . venv/bin/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
182
+ git clone --depth 1 https://github.com/plotly/dash-table.git
183
+ cd dash-table && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
184
+ git clone --depth 1 https://github.com/plotly/dash-html-components.git
185
+ cd dash-html-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
186
+ ls -la packages
187
187
- persist_to_workspace :
188
188
root : ~/dash
189
189
paths :
190
190
- packages/*.tar.gz
191
191
192
192
build-misc-36 :
193
- << : *build-misc
194
- docker :
195
- - image : circleci/python:3.6.12-stretch-node-browsers
196
- auth :
197
- username : dashautomation
198
- password : $DASH_PAT_DOCKERHUB
199
- environment :
200
- PYVERSION : python36
193
+ << : *build-misc
194
+ docker :
195
+ - image : circleci/python:3.6.12-stretch-node-browsers
196
+ auth :
197
+ username : dashautomation
198
+ password : $DASH_PAT_DOCKERHUB
199
+ environment :
200
+ PYVERSION : python36
201
201
202
202
build-misc-27 :
203
- << : *build-misc
204
- docker :
205
- - image : circleci/python:2.7.18-stretch-node-browsers
206
- auth :
207
- username : dashautomation
208
- password : $DASH_PAT_DOCKERHUB
209
- environment :
210
- PYVERSION : python27
203
+ << : *build-misc
204
+ docker :
205
+ - image : circleci/python:2.7.18-stretch-node-browsers
206
+ auth :
207
+ username : dashautomation
208
+ password : $DASH_PAT_DOCKERHUB
209
+ environment :
210
+ PYVERSION : python27
211
211
212
212
build-windows-37 :
213
213
working_directory : ~/dash
@@ -222,10 +222,10 @@ jobs:
222
222
- run :
223
223
name : ️️🏗️ build core
224
224
command : |
225
- pip install --no-cache-dir --upgrade -e .[dev,testing] --progress-bar off
226
- cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
227
- git clone --depth 1 https://github.com/plotly/dash-core-components.git
228
- cd dash-core-components && npm ci && npm run build && python setup.py sdist && cd ..
225
+ pip install --no-cache-dir --upgrade -e .[dev,testing] --progress-bar off
226
+ cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
227
+ git clone --depth 1 https://github.com/plotly/dash-core-components.git
228
+ cd dash-core-components && npm ci && npm run build && python setup.py sdist && cd ..
229
229
230
230
build-dashr :
231
231
working_directory : ~/dashr
@@ -241,9 +241,8 @@ jobs:
241
241
242
242
steps :
243
243
- checkout
244
-
245
244
- run :
246
- name : ️️ 🏭 clone and npm build core for R
245
+ name : 🏭 clone and npm build core for R
247
246
command : |
248
247
python -m venv venv
249
248
. venv/bin/activate
@@ -259,7 +258,7 @@ jobs:
259
258
cd ../dash-table; npm ci && npm run build; rm -rf !(.|..|DESCRIPTION|LICENSE.txt|LICENSE|NAMESPACE|.Rbuildignore|R|man|inst|vignettes|build); cd ..
260
259
261
260
- run :
262
- name : 🔧fix up dash metadata
261
+ name : 🔧 fix up dash metadata
263
262
command : |
264
263
sudo Rscript dashR/tests/circleci/fixup_metadata.R
265
264
@@ -282,7 +281,7 @@ jobs:
282
281
>> ${BASH_ENV}
283
282
284
283
- run :
285
- name : ️️ 📋 run CRAN package checks
284
+ name : ️ 📋 run CRAN package checks
286
285
command : |
287
286
R CMD build dash-core-components
288
287
R CMD build dash-html-components
@@ -331,7 +330,6 @@ jobs:
331
330
path : test-reports
332
331
- store_artifacts :
333
332
path : /tmp/dash_artifacts
334
-
335
333
- run :
336
334
name : 🦔 percy finalize
337
335
command : npx percy finalize --all
@@ -358,7 +356,7 @@ jobs:
358
356
- attach_workspace :
359
357
at : ~/dash
360
358
- run :
361
- name : ️️🏗️ Install packages
359
+ name : ️️🏗️ Install packages
362
360
command : |
363
361
. venv/bin/activate
364
362
npm install --production
@@ -384,53 +382,45 @@ jobs:
384
382
when : on_fail
385
383
386
384
test-36 :
387
- << : *test
388
- docker :
389
- - image : circleci/python:3.6.12-stretch-node-browsers
390
- auth :
391
- username : dashautomation
392
- password : $DASH_PAT_DOCKERHUB
393
- environment :
394
- PERCY_ENABLE : 0
395
- PYVERSION : python36
385
+ << : *test
386
+ docker :
387
+ - image : circleci/python:3.6.12-stretch-node-browsers
388
+ auth :
389
+ username : dashautomation
390
+ password : $DASH_PAT_DOCKERHUB
391
+ environment :
392
+ PERCY_ENABLE : 0
393
+ PYVERSION : python36
396
394
397
395
test-27 :
398
- << : *test
399
- docker :
400
- - image : circleci/python:2.7.18-stretch-node-browsers
401
- auth :
402
- username : dashautomation
403
- password : $DASH_PAT_DOCKERHUB
404
- environment :
405
- PERCY_ENABLE : 0
406
- PYVERSION : python27
396
+ << : *test
397
+ docker :
398
+ - image : circleci/python:2.7.18-stretch-node-browsers
399
+ auth :
400
+ username : dashautomation
401
+ password : $DASH_PAT_DOCKERHUB
402
+ environment :
403
+ PERCY_ENABLE : 0
404
+ PYVERSION : python27
407
405
408
406
workflows :
409
407
version : 2
410
408
python3.7 :
411
409
jobs :
412
- - lint-unit-37 :
413
- context : dash-docker-hub
414
- - build-core-37 :
415
- context : dash-docker-hub
416
- - build-windows-37 :
417
- context : dash-docker-hub
418
- - build-misc-37 :
419
- context : dash-docker-hub
420
- - build-dashr :
421
- context : dash-docker-hub
410
+ - lint-unit-37
411
+ - build-core-37
412
+ - build-windows-37
413
+ - build-misc-37
414
+ - build-dashr
422
415
- test-37 :
423
- context : dash-docker-hub
424
416
requires :
425
417
- build-core-37
426
418
- build-misc-37
427
419
- percy-finalize :
428
- context : dash-docker-hub
429
420
requires :
430
421
- build-dashr
431
422
- test-37
432
423
- artifacts :
433
- context : dash-docker-hub
434
424
requires :
435
425
- percy-finalize
436
426
filters :
@@ -443,27 +433,19 @@ workflows:
443
433
444
434
python3.6 :
445
435
jobs :
446
- - lint-unit-36 :
447
- context : dash-docker-hub
448
- - build-core-36 :
449
- context : dash-docker-hub
450
- - build-misc-36 :
451
- context : dash-docker-hub
436
+ - lint-unit-36
437
+ - build-core-36
438
+ - build-misc-36
452
439
- test-36 :
453
- context : dash-docker-hub
454
440
requires :
455
441
- build-core-36
456
442
- build-misc-36
457
443
python2.7 :
458
444
jobs :
459
- - lint-unit-27 :
460
- context : dash-docker-hub
461
- - build-core-27 :
462
- context : dash-docker-hub
463
- - build-misc-27 :
464
- context : dash-docker-hub
445
+ - lint-unit-27
446
+ - build-core-27
447
+ - build-misc-27
465
448
- test-27 :
466
- context : dash-docker-hub
467
449
requires :
468
450
- build-core-27
469
451
- build-misc-27
0 commit comments