@@ -24,33 +24,34 @@ jobs:
24
24
- node_modules
25
25
- /home/circleci/.cache/Cypress
26
26
27
- - run :
28
- name : Create virtualenv
29
- command : |
30
- python3 -m venv venv
31
-
32
27
- run :
33
28
name : Install requirements
34
29
command : |
30
+ sudo pip install --upgrade virtualenv
31
+ python -m venv venv || virtualenv venv
35
32
. venv/bin/activate
36
33
pip install -r requirements-base.txt --quiet
37
- pip install -r requirements-v0.txt --quiet
38
-
39
- - run :
40
- name : Run build:js
41
- command : npm run private::build:js-test
42
34
43
35
- run :
44
- name : Install test requirements
36
+ name : Install dependencies (dash)
45
37
command : |
38
+ git clone [email protected] :plotly/dash.git
39
+ git clone [email protected] :plotly/dash-renderer.git
40
+ git clone [email protected] :plotly/dash-core-components.git
41
+ git clone [email protected] :plotly/dash-html-components.git
46
42
. venv/bin/activate
47
- pip install -e .
43
+ pip install -e ./dash --quiet
44
+ cd dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
45
+ cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
46
+ cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
48
47
49
48
- run :
50
- name : Run build:py
49
+ name : Build
51
50
command : |
52
51
. venv/bin/activate
52
+ npm run private::build:js-test
53
53
npm run private::build:py
54
+ pip install -e .
54
55
55
56
- run :
56
57
name : Run tests
@@ -82,28 +83,22 @@ jobs:
82
83
- node_modules
83
84
- /home/circleci/.cache/Cypress
84
85
85
- - run :
86
- name : Create virtualenv
87
- command : |
88
- python3 -m venv venv
89
-
90
86
- run :
91
87
name : Install requirements
92
88
command : |
89
+ sudo pip install --upgrade virtualenv
90
+ python -m venv venv || virtualenv venv
93
91
. venv/bin/activate
94
- pip install -e .
95
92
pip install -r requirements-base.txt --quiet
96
93
pip install -r requirements-v1.txt --quiet
97
94
98
95
- run :
99
- name : Run build:js
100
- command : npm run private::build:js-test
101
-
102
- - run :
103
- name : Run build:py
96
+ name : Build
104
97
command : |
105
98
. venv/bin/activate
99
+ npm run private::build:js-test
106
100
npm run private::build:py
101
+ pip install -e .
107
102
108
103
- run :
109
104
name : Run tests
@@ -179,7 +174,7 @@ jobs:
179
174
180
175
" python-3.6-v0 " :
181
176
docker :
182
- - image : circleci/python:3.6.7-stretch-browsers
177
+ - image : circleci/python:3.6.7-stretch-node- browsers
183
178
184
179
environment :
185
180
PERCY_ENABLED : True
@@ -194,16 +189,33 @@ jobs:
194
189
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
195
190
196
191
- run :
197
- name : Create virtualenv
192
+ name : Install requirements
198
193
command : |
199
- python3 -m venv venv
194
+ sudo pip install --upgrade virtualenv
195
+ python -m venv venv || virtualenv venv
196
+ . venv/bin/activate
197
+ pip install -r requirements-base.txt --quiet
198
+ npm install
200
199
201
200
- run :
202
- name : Install requirements
201
+ name : Install dependencies (dash)
203
202
command : |
203
+ git clone [email protected] :plotly/dash.git
204
+ git clone [email protected] :plotly/dash-renderer.git
205
+ git clone [email protected] :plotly/dash-core-components.git
206
+ git clone [email protected] :plotly/dash-html-components.git
204
207
. venv/bin/activate
205
- pip install -r requirements-base.txt --quiet
206
- pip install -r requirements-v0.txt --quiet
208
+ pip install -e ./dash --quiet
209
+ cd dash-renderer && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
210
+ cd dash-core-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
211
+ cd dash-html-components && npm install --ignore-scripts && npm run build && pip install -e . && cd ..
212
+
213
+ - run :
214
+ name : Install test requirements
215
+ command : |
216
+ . venv/bin/activate
217
+ npm run build
218
+ pip install -e .
207
219
208
220
- run :
209
221
name : Run integration tests
@@ -214,7 +226,7 @@ jobs:
214
226
215
227
" python-3.6-v1 " :
216
228
docker :
217
- - image : circleci/python:3.6.7-stretch-browsers
229
+ - image : circleci/python:3.6.7-stretch-node- browsers
218
230
219
231
environment :
220
232
PERCY_ENABLED : True
@@ -228,17 +240,22 @@ jobs:
228
240
command : |
229
241
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V1"' >> $BASH_ENV
230
242
231
- - run :
232
- name : Create virtualenv
233
- command : |
234
- python3 -m venv venv
235
-
236
243
- run :
237
244
name : Install requirements
238
245
command : |
246
+ sudo pip install --upgrade virtualenv
247
+ python -m venv venv || virtualenv venv
239
248
. venv/bin/activate
240
249
pip install -r requirements-base.txt --quiet
241
250
pip install -r requirements-v1.txt --quiet
251
+ npm install
252
+
253
+ - run :
254
+ name : Install test requirements
255
+ command : |
256
+ . venv/bin/activate
257
+ npm run build
258
+ pip install -e .
242
259
243
260
- run :
244
261
name : Run integration tests
0 commit comments