5
5
percy-finalize :
6
6
docker :
7
7
- image : percyio/agent
8
+ auth :
9
+ username : dashautomation
10
+ password : $DASH_PAT_DOCKERHUB
8
11
steps :
9
12
- run : percy finalize --all
10
13
11
14
artifacts :
12
15
docker :
13
16
- image : circleci/python:3.7.6-stretch-node-browsers
17
+ auth :
18
+ username : dashautomation
19
+ password : $DASH_PAT_DOCKERHUB
14
20
environment :
15
21
PYVERSION : python37
16
22
steps :
28
34
working_directory : ~/dash
29
35
docker :
30
36
- image : circleci/python:3.7.6-stretch-node-browsers
37
+ auth :
38
+ username : dashautomation
39
+ password : $DASH_PAT_DOCKERHUB
31
40
environment :
32
41
PYLINTRC : .pylintrc37
33
42
PYVERSION : python37
65
74
<< : *lint-unit
66
75
docker :
67
76
- image : circleci/python:3.6.9-stretch-node-browsers
77
+ auth :
78
+ username : dashautomation
79
+ password : $DASH_PAT_DOCKERHUB
68
80
environment :
69
81
PYLINTRC : .pylintrc
70
82
PYVERSION : python36
73
85
<< : *lint-unit
74
86
docker :
75
87
- image : circleci/python:2.7.18-stretch-node-browsers
88
+ auth :
89
+ username : dashautomation
90
+ password : $DASH_PAT_DOCKERHUB
76
91
environment :
77
92
PYLINTRC : .pylintrc
78
93
PYVERSION : python27
81
96
working_directory : ~/dash
82
97
docker :
83
98
- image : circleci/python:3.7.6-stretch-node-browsers
99
+ auth :
100
+ username : dashautomation
101
+ password : $DASH_PAT_DOCKERHUB
84
102
environment :
85
103
PYVERSION : python37
86
104
steps :
@@ -116,20 +134,29 @@ jobs:
116
134
<< : *build-core
117
135
docker :
118
136
- image : circleci/python:3.6.9-stretch-node-browsers
137
+ auth :
138
+ username : dashautomation
139
+ password : $DASH_PAT_DOCKERHUB
119
140
environment :
120
141
PYVERSION : python36
121
142
122
143
build-core-27 :
123
144
<< : *build-core
124
145
docker :
125
146
- image : circleci/python:2.7.18-stretch-node-browsers
147
+ auth :
148
+ username : dashautomation
149
+ password : $DASH_PAT_DOCKERHUB
126
150
environment :
127
151
PYVERSION : python27
128
152
129
153
build-misc-37 : &build-misc
130
154
working_directory : ~/dash
131
155
docker :
132
156
- image : circleci/python:3.7.6-stretch-node-browsers
157
+ auth :
158
+ username : dashautomation
159
+ password : $DASH_PAT_DOCKERHUB
133
160
environment :
134
161
PYVERSION : python37
135
162
@@ -166,17 +193,23 @@ jobs:
166
193
<< : *build-misc
167
194
docker :
168
195
- image : circleci/python:3.6.9-stretch-node-browsers
196
+ auth :
197
+ username : dashautomation
198
+ password : $DASH_PAT_DOCKERHUB
169
199
environment :
170
200
PYVERSION : python36
171
201
172
202
build-misc-27 :
173
203
<< : *build-misc
174
204
docker :
175
205
- image : circleci/python:2.7.18-stretch-node-browsers
206
+ auth :
207
+ username : dashautomation
208
+ password : $DASH_PAT_DOCKERHUB
176
209
environment :
177
210
PYVERSION : python27
178
211
179
- build-windows-37 : &build-windows
212
+ build-windows-37 :
180
213
working_directory : ~/dash
181
214
executor :
182
215
name : win/default
@@ -186,37 +219,21 @@ jobs:
186
219
steps :
187
220
- checkout
188
221
- run : echo $PYVERSION > ver.txt
189
- - restore_cache :
190
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
191
- - run :
192
- name : ️️🏗️ pip dev requirements
193
- command : |
194
- pip install --upgrade virtualenv
195
- virtualenv venv
196
- source venv/Scripts/activate
197
- sed -i '/dash-/d' requires-install.txt
198
- pip install -e . --no-cache-dir -r requires-install.txt -r requires-dev.txt -r requires-testing.txt --progress-bar off
199
- - save_cache :
200
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
201
- paths :
202
- - venv
203
222
- run :
204
223
name : ️️🏗️ build core
205
224
command : |
206
- source venv/Scripts/activate && pip install --no-cache-dir --upgrade -e . --progress-bar off && mkdir packages
225
+ pip install --no-cache-dir --upgrade -e .[dev,testing] --progress-bar off
207
226
cd dash-renderer && renderer build && python setup.py sdist && mv dist/* ../packages/ && cd ..
208
227
git clone --depth 1 https://github.com/plotly/dash-core-components.git
209
- cd dash-core-components && npm ci && npm run build && python setup.py sdist && mv dist/* ../packages/ && cd ..
210
- ls -la packages
211
- - persist_to_workspace :
212
- root : ~/dash
213
- paths :
214
- - packages/*.tar.gz
228
+ cd dash-core-components && npm ci && npm run build && python setup.py sdist && cd ..
215
229
216
230
build-dashr :
217
231
working_directory : ~/dashr
218
232
docker :
219
233
- image : plotly/dashr:ci
234
+ auth :
235
+ username : dashautomation
236
+ password : $DASH_PAT_DOCKERHUB
220
237
environment :
221
238
PERCY_PARALLEL_TOTAL : -1
222
239
PYVERSION : python37
@@ -325,6 +342,9 @@ jobs:
325
342
working_directory : ~/dash
326
343
docker :
327
344
- image : circleci/python:3.7.6-stretch-node-browsers
345
+ auth :
346
+ username : dashautomation
347
+ password : $DASH_PAT_DOCKERHUB
328
348
environment :
329
349
PERCY_PARALLEL_TOTAL : -1
330
350
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD : True
@@ -367,6 +387,9 @@ jobs:
367
387
<< : *test
368
388
docker :
369
389
- image : circleci/python:3.6.9-stretch-node-browsers
390
+ auth :
391
+ username : dashautomation
392
+ password : $DASH_PAT_DOCKERHUB
370
393
environment :
371
394
PERCY_ENABLE : 0
372
395
PYVERSION : python36
@@ -375,6 +398,9 @@ jobs:
375
398
<< : *test
376
399
docker :
377
400
- image : circleci/python:2.7.18-stretch-node-browsers
401
+ auth :
402
+ username : dashautomation
403
+ password : $DASH_PAT_DOCKERHUB
378
404
environment :
379
405
PERCY_ENABLE : 0
380
406
PYVERSION : python27
@@ -383,20 +409,28 @@ workflows:
383
409
version : 2
384
410
python3.7 :
385
411
jobs :
386
- - lint-unit-37
387
- - build-core-37
388
- - build-windows-37
389
- - build-misc-37
390
- - build-dashr
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
391
422
- test-37 :
423
+ context : dash-docker-hub
392
424
requires :
393
425
- build-core-37
394
426
- build-misc-37
395
427
- percy-finalize :
428
+ context : dash-docker-hub
396
429
requires :
397
430
- build-dashr
398
431
- test-37
399
432
- artifacts :
433
+ context : dash-docker-hub
400
434
requires :
401
435
- percy-finalize
402
436
filters :
@@ -409,19 +443,27 @@ workflows:
409
443
410
444
python3.6 :
411
445
jobs :
412
- - lint-unit-36
413
- - build-core-36
414
- - build-misc-36
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
415
452
- test-36 :
453
+ context : dash-docker-hub
416
454
requires :
417
455
- build-core-36
418
456
- build-misc-36
419
457
python2.7 :
420
458
jobs :
421
- - lint-unit-27
422
- - build-core-27
423
- - build-misc-27
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
424
465
- test-27 :
466
+ context : dash-docker-hub
425
467
requires :
426
468
- build-core-27
427
469
- build-misc-27
0 commit comments