Skip to content

Commit a53e491

Browse files
Improve build - run against real latest (#394)
1 parent adcd59f commit a53e491

File tree

1 file changed

+53
-36
lines changed

1 file changed

+53
-36
lines changed

Diff for: packages/dash-table/.circleci/config.yml

+53-36
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,34 @@ jobs:
2424
- node_modules
2525
- /home/circleci/.cache/Cypress
2626

27-
- run:
28-
name: Create virtualenv
29-
command: |
30-
python3 -m venv venv
31-
3227
- run:
3328
name: Install requirements
3429
command: |
30+
sudo pip install --upgrade virtualenv
31+
python -m venv venv || virtualenv venv
3532
. venv/bin/activate
3633
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
4234
4335
- run:
44-
name: Install test requirements
36+
name: Install dependencies (dash)
4537
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
4642
. 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 ..
4847
4948
- run:
50-
name: Run build:py
49+
name: Build
5150
command: |
5251
. venv/bin/activate
52+
npm run private::build:js-test
5353
npm run private::build:py
54+
pip install -e .
5455
5556
- run:
5657
name: Run tests
@@ -82,28 +83,22 @@ jobs:
8283
- node_modules
8384
- /home/circleci/.cache/Cypress
8485

85-
- run:
86-
name: Create virtualenv
87-
command: |
88-
python3 -m venv venv
89-
9086
- run:
9187
name: Install requirements
9288
command: |
89+
sudo pip install --upgrade virtualenv
90+
python -m venv venv || virtualenv venv
9391
. venv/bin/activate
94-
pip install -e .
9592
pip install -r requirements-base.txt --quiet
9693
pip install -r requirements-v1.txt --quiet
9794
9895
- 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
10497
command: |
10598
. venv/bin/activate
99+
npm run private::build:js-test
106100
npm run private::build:py
101+
pip install -e .
107102
108103
- run:
109104
name: Run tests
@@ -179,7 +174,7 @@ jobs:
179174

180175
"python-3.6-v0":
181176
docker:
182-
- image: circleci/python:3.6.7-stretch-browsers
177+
- image: circleci/python:3.6.7-stretch-node-browsers
183178

184179
environment:
185180
PERCY_ENABLED: True
@@ -194,16 +189,33 @@ jobs:
194189
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
195190
196191
- run:
197-
name: Create virtualenv
192+
name: Install requirements
198193
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
200199
201200
- run:
202-
name: Install requirements
201+
name: Install dependencies (dash)
203202
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
204207
. 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 .
207219
208220
- run:
209221
name: Run integration tests
@@ -214,7 +226,7 @@ jobs:
214226
215227
"python-3.6-v1":
216228
docker:
217-
- image: circleci/python:3.6.7-stretch-browsers
229+
- image: circleci/python:3.6.7-stretch-node-browsers
218230

219231
environment:
220232
PERCY_ENABLED: True
@@ -228,17 +240,22 @@ jobs:
228240
command: |
229241
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V1"' >> $BASH_ENV
230242
231-
- run:
232-
name: Create virtualenv
233-
command: |
234-
python3 -m venv venv
235-
236243
- run:
237244
name: Install requirements
238245
command: |
246+
sudo pip install --upgrade virtualenv
247+
python -m venv venv || virtualenv venv
239248
. venv/bin/activate
240249
pip install -r requirements-base.txt --quiet
241250
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 .
242259
243260
- run:
244261
name: Run integration tests

0 commit comments

Comments
 (0)